vdenotaris / spring-boot-security-saml-sample

SBS3 — A sample SAML 2.0 Service Provider built on Spring Boot.
https://sbs3.vdenotaris.com
Apache License 2.0
564 stars 351 forks source link

Handle SAML response #32

Closed lunanigra closed 7 years ago

lunanigra commented 7 years ago

Hello, thanks for your sample project. Currently implementing SAML authentication based on your sample.

Metadata generation works fine as well as the redirection to the IDP site. But on the way back we just get an error... Error! Something went wrong during the authentication process.

I guess it is caused as the request request is not handled correctly or not handled at all. Can you give me a hint which class is used to handle the /saml/SSO request?

POST /saml/SSO HTTP/1.1 Host: ... User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:53.0) Gecko/20100101 Firefox/53.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate, br Content-Type: application/x-www-form-urlencoded Content-Length: 2285 Referer: https://... Cookie: JSESSIONID=93D15C024BF3E8EC6EE186BA4BF33EFA Connection: keep-alive Upgrade-Insecure-Requests: 1 SAMLResponse=...: undefined

lunanigra commented 7 years ago

Sorry, was an issue with our IDP.