-
Notifications
You must be signed in to change notification settings - Fork 6.1k

Description
Expected Behavior
I should be able to read attribute values after SAML response is parsed and validated without parsing it myself.
Current Behavior
As far I can tell OpenSamlAuthenticationProvider
parses and validates the response, and then throws away the Assertion
object. What I'm left with is encrypted response string.
Context
I want to show the user's first and last name on my website.
I could parse XML myself after successful login, but that doesn't seem very pretty.
I think that in the earlier iterations SecurityContextHolder.getContext().getAuthentication().getCredentials()
returned SAMLCredential
object with getAttribute
methods.
Sorry if this is already possible, please tell me how it's supposed to be done in that case. If it's not possible, what nice workaround I could use?
I know that it's possible to extract roles using custom authorities extractor, but what about other attributes?