-
Notifications
You must be signed in to change notification settings - Fork 407
Signed SAML request missing SAMLRequest and RelayState #204
Description
SP initiated SSO process.
We are using java-saml 2.2.0 lib for quite some time, recently we observed that when we send a signed saml request the binding should be Redirect binding and so SAMLRequest should be part of URL. Unfortunately it is not and further digging on this discovered, its a POST call.
Maybe i am missing something, please correct me if my understand is wrong in anyway.
This is the url
This is the AuthnRequest -
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="ONELOGIN_ea877d5e-bbf4-4d72-81a6-6da659944a4c"
Version="2.0"
IssueInstant="2018-11-28T20:34:35Z"
Destination="https://dev-665918.oktapreview.com/app/dev665918_appdtest_1/exkhkcpoiuiszFBq90h7/sso/saml"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
AssertionConsumerServiceURL="http://localhost:8080/controller/saml-auth?accountName=customer1"
> saml:Issuerhttp://localhost:8080/controller</saml:Issuer> <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
AllowCreate="true"
/> </samlp:AuthnRequest>
And finally POST paramters
POST
SAMLRequest: PHNhbWxwOkF1dGhuUmVxdWVzdCB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiB4bWxuczpzYW1sPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIiBJRD0iT05FTE9HSU5fZWE4NzdkNWUtYmJmNC00ZDcyLTgxYTYtNmRhNjU5OTQ0YTRjIiBWZXJzaW9uPSIyLjAiIElzc3VlSW5zdGFudD0iMjAxOC0xMS0yOFQyMDozNDozNVoiIERlc3RpbmF0aW9uPSJodHRwczovL2Rldi02NjU5MTgub2t0YXByZXZpZXcuY29tL2FwcC9hcHBkeW5hbWljc2RldjY2NTkxOF9hcHBkdGVzdF8xL2V4a2hrY3BvaXVpc3pGQnE5MGg3L3Nzby9zYW1sIiBQcm90b2NvbEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cDovL2xvY2FsaG9zdDo4MDgwL2NvbnRyb2xsZXIvc2FtbC1hdXRoP2FjY291bnROYW1lPWN1c3RvbWVyMSI+PHNhbWw6SXNzdWVyPmh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9jb250cm9sbGVyPC9zYW1sOklzc3Vlcj48c2FtbHA6TmFtZUlEUG9saWN5IEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4xOm5hbWVpZC1mb3JtYXQ6dW5zcGVjaWZpZWQiIEFsbG93Q3JlYXRlPSJ0cnVlIiAvPjwvc2FtbHA6QXV0aG5SZXF1ZXN0Pg== RelayState: http://localhost:8080/controller/#