1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-10 20:07:56 +01:00

Email length in IdSv4 config needed to be 256 (#1255)

This commit is contained in:
Chad Scharf 2021-04-01 10:56:55 -04:00 committed by GitHub
parent 10d9e6c687
commit 1b8b9b7539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ namespace Bit.Sso.Utilities
options.UserInteraction.ErrorUrl = "/Error";
options.UserInteraction.ErrorIdParameter = "errorId";
}
options.InputLengthRestrictions.UserName = 256;
})
.AddInMemoryCaching()
.AddInMemoryClients(new List<Client>

View File

@ -36,6 +36,7 @@ namespace Bit.Identity.Utilities
{
options.Authentication.CookieSameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode.Unspecified;
}
options.InputLengthRestrictions.UserName = 256;
})
.AddInMemoryCaching()
.AddInMemoryApiResources(ApiResources.GetApiResources())