Scenario:
- WSO2 Identity Server 5.4.0 configured as SAML IDP.
- A third party application configured as SAML Service Provider.
- WSO2 IS uses MySQL as the JDBC user store
The SAML SP requires username, firstname and lastname as ATTRIBUTES in the SAML assertion. The SAML SP claim configuration is set as follows
- firstname -> http://wso2.org/claims/givenname
- lastname -> http://wso2.org/claims/lastname
- username -> http://wso2.org/claims/username
firstname and lastname are sent in the SAML assertion as expected, whereas username is not sent in the SAML assertion.
Is there a way to achieve this?
Note: Further investigation showed that the username is not listed in the CLAIMS table UM_USER_ATTRIBUTE and as such may not be accessible via a claim mapping defined in WSO2 IS. Interestingly in OIDC the username is returned as the sub claim which is actually mapped to http://wso2.org/claims/username
Any hint and insight is appreciated.