This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Single Sign-On Across Web Applications and Web Services
The requirement is to have single sign-on across different web applications - once a user is authenticated they should be able to access all the web applications with no further authentication. Also, the web applications need to access a set of back-end services with the logged in user's access rights and the back-end services authorize the user [end-user] based on different claims, like roles.
- The user accesses the link to the WebApp.
- The WebApp finds out the user is not authenticated and redirects to the SAML2 IdP.
- SAML2 Idp checks whether the user has an authenticated session - if not it will prompt for credentials. Once authenticated, the user is redirected back to WebApp with a SAML token, with the set of claims requested by the WebApp.
- The WebApp needs to access a back-end Web Service with the logged in user's access rights. WebApp passes the SAML token to the PEP based on WS-Trust and authenticates itself [WebApp] to the PEP via a trusted sub-system pattern.
- PEP calls XACML PDP to authorize the user based on the claims provided in the SAML token.
- XACML PDP returns back the decision to the PEP.
- If it is a 'Permit', PEP allows the user to access the back-end Web Service.