-
Notifications
You must be signed in to change notification settings - Fork 479
Cant parse attributes from OKTA response #179
Comments
The namespace is not compatible with our authenticator either. Is there a way to config prefix in xml configuraiton? |
This issue was related to a properties file that we were using in windows. The properties file contained key=value type properties and one of the values was blank prior to the properties we needed for getting the attributes. Moving the blank value'd property to the end of the file solved our problem. |
Hi Richard, I am trying to implement okta sso for my spring mvc application. We already have regular spring security authentication. We have to implement okta sso auth now. I am following the below link to implement it. https://developer.okta.com/blog/2017/03/16/spring-boot-saml It is not working with context path in the url. Also, once the authentication is successful, how are you parsing the response. Below is my security config code.
Any help would be appreciated. Thanks |
this issue is stil present in mid 2020 ... the SP part in Spring Security can't parse any information from the SAMLResponse (all fields in the OpenSaml At least tell us if this is even supported or a bug or configurable ... |
I've heard recent reports of successful Okta integrations. Also, it appears that the OP for the ticket was able to resolve their own issue, which is why they closed it with a comment explaining their solution. |
We have a spring-security-saml SP implementation that has been working with many IdPs (ADFS, Ping Identity, etc.) We are trying to integrate with OKTA's IdP and although nothing readily fails, we are not able to read the attributes out of the assertion. I have included the obfuscated response which uses the saml2 and saml2p namespaces (unlike other Response's we parse correctly with samlp namespace). That's the only real difference I can determine. The code we use to parse the attributes looks like:
Where the actual names are injected from a properties file and were correct. We tried many variations with no spaces, all lowercase. No combinations worked.
and we do see from the logs that the attributes are being processed:
2016-08-31 21:23:20,865 [http-apr-8280-exec-5] 88792226 DEBUG org.springframework.security.saml.websso.WebSSOProfileConsumerImpl (processAuthenticationResponse:237) - Including attribute email from assertion id17554796923033802113941666
2016-08-31 21:23:20,865 [http-apr-8280-exec-5] 88792226 DEBUG org.springframework.security.saml.websso.WebSSOProfileConsumerImpl (processAuthenticationResponse:237) - Including attribute First Name from assertion id17554796923033802113941666
2016-08-31 21:23:20,865 [http-apr-8280-exec-5] 88792226 DEBUG org.springframework.security.saml.websso.WebSSOProfileConsumerImpl (processAuthenticationResponse:237) - Including attribute Last Name from assertion id1755479692303380211394
But the Principal comes back with the firstname, lastname as null.
The Response:
The text was updated successfully, but these errors were encountered: