简体   繁体   中英

How to pass entire SAML token (from ADFS) to Consumer App (travelocity)

I have a situation wherein, I have used the travelocity web application provided by WSO2. I have integrated ADFS with Identity Server. Travelocity has the code that can retrieve the claims that are being sent by IdP(in my case MS ADFS). However, can we get entire SAML token in the travelocity web application, so that same can be passed to desired backend via API Manager. If not how to retrieve entire SAML instead of only Claims.

LoggedInSessionBean sessionBean = (LoggedInSessionBean)session.getAttribute(SSOAgentConstants.SESSION_BEAN_NAME);
sessionBean.getSAML2SSO().getSAMLResponse();

will give you the saml response. Check the references

1. https://github.com/wso2/product-is/blob/v5.1.0/modules/samples/sso/sso-agent-sample/src/main/webapp/home.jsp#L48

2. https://github.com/wso2/carbon-identity/blob/master/components/agents/org.wso2.carbon.identity.sso.agent/src/main/java/org/wso2/carbon/identity/sso/agent/bean/LoggedInSessionBean.java#L242

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM