问题
I need to release, using wso2 is, a custom oAuth2 token after a check on saml2 assertion as input. How is it possibile customized the oAuth2 token ?
回答1:
You can retrieve OAuth access token for SAML2 assertion. As WSO2 Identity Server 4.5.0 supports saml2 bearer assertion grant type. You can find the doc. You can modify the returning OAuth2 access token by adding custom implementation. There is an interface that you can implement this. Here you have a method called "issue". Actually you may can implement the Abstract class of this. However i have not done this.. Just for information.
来源:https://stackoverflow.com/questions/20374120/custom-oauth2-token-after-a-sam2-assertion-check