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
562 stars 351 forks source link

Unable to get SAML token from ADFS IdP #10

Closed ghost closed 9 years ago

ghost commented 9 years ago

It seems that Authentication object does not returning SAML assertion token? We're unable to find it out from the API use for SAML

Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); SAMLCredential credential = (SAMLCredential) authentication.getCredentials(); pageContext.setAttribute("authentication", authentication); pageContext.setAttribute("credential", credential);

Could you please let us know how to get token?

vdenotaris commented 9 years ago

For any questions, please, use StackOverflow. Cheers, Vi.