Skip to content

Commit 8c82e16

Browse files
committed
Mark it as more Evil
1 parent 527ca37 commit 8c82e16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ProgressOnderwijsUtils/SingleSignOn/SsoProcessor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ static string EncodeQueryParameter(string key, string value)
4747
public static Maybe<SsoAttributes, string> GetAttributes(string rawSamlResponse, X509Certificate2 certificate)
4848
=> GetAttributes(rawSamlResponse, certificate, false);
4949

50-
public static Maybe<SsoAttributes, string> GetAttributes(string rawSamlResponse, X509Certificate2 certificate, bool evilIgnoreSignatureCheck)
50+
[Obsolete("This method ignores signature validation and should not be used in production code")]
51+
public static Maybe<SsoAttributes, string> GetAttributesWithEvilIgnoreSignatureCheck(string rawSamlResponse, X509Certificate2 certificate)
52+
=> GetAttributes(rawSamlResponse, certificate, true);
53+
54+
static Maybe<SsoAttributes, string> GetAttributes(string rawSamlResponse, X509Certificate2 certificate, bool evilIgnoreSignatureCheck)
5155
{
5256
byte[] bytes;
5357
try {

0 commit comments

Comments
 (0)