-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AuthnRequest body via POST #264
Comments
HTTP-POST is not supported for AuthNRequest, LogoutRequest and LogoutResponse.
If you review the XML template of AuthNRequest, LogoutRequest and LogoutResponse you will see that
The data of those SAML messages is public (except the NameId that you can always encrypt). That said, if you review Conformance Requirements for the OASIS Security Assertion Markup Language (SAML) V2.0 Page 9, you will see that all IdPs MUST support the HTTP-Redirect binding, so you should experience any issue with IdPs that follows the SAML standard rules. |
Thanks @pitbulk for the insights, much appreciated! Is it safe to assume that all other requests except AuthNRequest, LogoutRequest and LogoutResponse are HTTP-POST bindings? |
SP ACS URL uses HTTP-POST, other SAML exchange is expected to be HTTP-Redirect. |
@pitbulk how big a task would it be to support HTTP-POST? |
@FrittenKeeZ there is no interest in support that because that will increase the complexity of the toolkit (code and settings) and the main goal of the toolkit is to keep it simple. If you require it in a project, you can use simpleSAMLphp which support any binding. The task is big:
|
@pitbulk it was all a matter of using the correct settings to get it working, so no need to implement |
@pitbulk I'm implementing a SAML SP SSO integration for the first time and was also wondering if the IdP could require me to submit the AuthNRequest using the HTTP-POST binding, so it's good to know that the spec requires IdPs to support the redirect binding for this request. That said, it seems from reviewing the code, that you could do it if necessary by doing something like this:
(This is assuming the IdP doesn't require a signed request.) Would that work? |
That will work if the IdP does not require signed AuthNRequests. Also check: #422 |
Hi all,
After short code review (lib/Saml2/AuthnRequest.php & lib/Saml2/Auth.php), it looks like php-saml does not support HTTP-POST for request being send from SP to IdP when SSO is initialised.
Is that correct or I'm missing something?
If HTTP-POST is not supported for initial request:
A bit more insight is much appreciated!
The text was updated successfully, but these errors were encountered: