SAML Redirect with ADFS

114 views
Skip to first unread message

R. Z.

unread,
Jun 22, 2022, 6:49:10 AM6/22/22
to Pac4j users mailing list
Hello,

the prototype of our SAML Plugin works fine when connected to our Okta. I deployed the same plugin, same code, no changes, at customer site. 
They are using AzureAD for SAML. I got the metadata.xml from our customer.
Now, when redirecting to the AzureAD Login I get the error:

AADSTS750054: SAMLRequest or SAMLResponse must be present as query string parameters in HTTP request for SAML Redirect binding.

the http response is 400 Bad Request.

Anyone encountered this error? What's wrong?

Regards
Robert

Jérôme LELEU

unread,
Jun 22, 2022, 11:46:42 AM6/22/22
to R. Z., Pac4j users mailing list
Hi,

It looks like the SAMLRequest is expected in the URL, meaning that you need to set the HTTP-Redirect binding for the SAML request.

You can do that by: saml2Config.setAuthnRequestBindingType("urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect");

Thanks.
Best regards,
Jérôme


--
You received this message because you are subscribed to the Google Groups "Pac4j users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-users/4bee755b-1fec-4a4a-9eba-d2bd49772b7cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages