mirror of
https://github.com/bitwarden/server
synced 2025-12-17 00:33:23 +00:00
Fix skip sso for apikey login (#1308)
* Improve mixing SSO login error * Skip SSO requirement for API key logins * Bypass MFA for apikey logins
This commit is contained in:
@@ -87,7 +87,13 @@ namespace Bit.Core.IdentityServer
|
||||
}
|
||||
|
||||
protected override void SetSsoResult(CustomTokenRequestValidationContext context,
|
||||
Dictionary<string, object> customResponse) => throw new System.NotImplementedException();
|
||||
Dictionary<string, object> customResponse)
|
||||
{
|
||||
context.Result.Error = "invalid_grant";
|
||||
context.Result.ErrorDescription = "Single Sign on required.";
|
||||
context.Result.IsError = true;
|
||||
context.Result.CustomResponse = customResponse;
|
||||
}
|
||||
|
||||
protected override void SetErrorResult(CustomTokenRequestValidationContext context,
|
||||
Dictionary<string, object> customResponse)
|
||||
|
||||
Reference in New Issue
Block a user