问题
I am using WSO2 Identity management server(WSO2 IS) for SSO . Once user is authenticated ID server sends the SAML response to webapp. I want WSO2 IS to send token in pre-configured format(like user_name and user_role) to be sent instead of SAML reponse.
回答1:
WSO2IS acts according to the SAML2 SSO specification, Therefore username and user's attributes can be found inside the SAML2 Assertion as attribute statement. There is no flexibility to customize it.
But, if you do not like SAML2 SSO (As SAML is XML based), you can use openid connect to achieve the SSO with WSO2IS. Then you need to communicate according to the openid connect specification. WSO2IS support for it and you can find more details from here
来源:https://stackoverflow.com/questions/28668523/configure-wso2-is-server-to-send-token-in-pre-configured-format-instead-of-saml