mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
build jwtoptions from JwtBearerAppBuilderExtensions
This commit is contained in:
@ -104,8 +104,8 @@ namespace Bit.Api.IdentityServer
|
||||
var httpContext = _httpContextAccessor.HttpContext;
|
||||
_userManager = httpContext.RequestServices.GetRequiredService<UserManager<User>>();
|
||||
_identityOptions = httpContext.RequestServices.GetRequiredService<IOptions<IdentityOptions>>()?.Value ?? new IdentityOptions();
|
||||
_jwtBearerOptions = httpContext.RequestServices.GetRequiredService<IOptions<JwtBearerOptions>>()?.Value;
|
||||
_jwtBearerIdentityOptions = httpContext.RequestServices.GetRequiredService<IOptions<JwtBearerIdentityOptions>>()?.Value;
|
||||
_jwtBearerOptions = Core.Identity.JwtBearerAppBuilderExtensions.BuildJwtBearerOptions(_jwtBearerIdentityOptions);
|
||||
}
|
||||
|
||||
private void BuildSuccessResult(User user, ResourceOwnerPasswordValidationContext context)
|
||||
|
Reference in New Issue
Block a user