1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 19:23:45 +00:00

[PM-3504] Return early for SAML auths (#3215)

* return early if scheme doesn't match

* Revert "return early if scheme doesn't match"

This reverts commit 5c07d66774.

* extend saml2handler for extra validation

* add comment

* fix file encoding

* add comment
This commit is contained in:
Jake Fink
2023-08-28 14:51:23 -04:00
committed by GitHub
parent a1d227c121
commit 27ba3069b2
2 changed files with 206 additions and 1 deletions

View File

@@ -415,7 +415,7 @@ public class DynamicAuthenticationSchemeProvider : AuthenticationSchemeProvider
};
options.IdentityProviders.Add(idp);
return new DynamicAuthenticationScheme(name, name, typeof(Saml2Handler), options, SsoType.Saml2);
return new DynamicAuthenticationScheme(name, name, typeof(Saml2BitHandler), options, SsoType.Saml2);
}
private NameIdFormat GetNameIdFormat(Saml2NameIdFormat format)