Skip to content

Commit

Permalink
Test saml bearer
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Nov 13, 2024
1 parent 9ebac66 commit 89d9104
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.Base64;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -187,7 +188,7 @@ public Authentication convert(HttpServletRequest request) throws AuthenticationE
RelyingPartyRegistration relyingPartyRegistration = relyingPartyRegistrationResolver.resolve(request, null);

String serializedAssertion = request.getParameter("assertion");
byte[] decodedAssertion = Saml2Utils.samlDecode(serializedAssertion);
byte[] decodedAssertion = Base64.getUrlDecoder().decode(serializedAssertion);
String assertionXml = new String(decodedAssertion, StandardCharsets.UTF_8);

Assertion assertion = parseAssertion(assertionXml);
Expand Down

0 comments on commit 89d9104

Please sign in to comment.