Enable Login for a SAML Web Application¶
This page guides you through enabling login for a SAML web application.
Prerequisites¶
-
Download Apache Tomcat 8.x and install it. Tomcat server installation location will later be referred to as
<TOMCAT_HOME>in this guide. -
It is recommended that you use a hostname that is not
localhostto avoid browser errors. Modify your machine's/etc/hostsentry to reflect this.Info
Note that
wso2is.localis used in this documentation as an example, but you must modify this when configuring the authenticators or connectors with this sample application. -
Download the SAML pickup dispatch application from the latest release assets.
Deploy the sample web app¶
To deploy the sample web app on a web container:
-
Copy the downloaded
.warfile of the SAML application into thewebappsdirectory of the Tomcat folder. -
Start the Tomcat server.
Register a service provider¶
-
On the Management Console, go to Main > Identity > Service Providers and click Add.
-
Enter
saml2-web-app-pickup-dispatchas the Service Provider Name, and click Register. -
Expand the Inbound Authentication Configuration > SAML2 Web SSO Configuration section and, click Configure.
-
Enter the following values in the fields mentioned.
Field name Value Issuer saml2-web-app-pickup-dispatch.comAssertion Consumer URL http://localhost.com:8080/saml2-web-app-pickup-dispatch.com/home.jspInfo
Click Yes on the dialog that appears after you add the Assertion Consumer URL. This dialog appears when you add an
httpURL. -
Enable the following by selecting the corresponding checkboxes:
- Enable Response Signing
- Enable Signature Validation in Authentication Requests and Logout Requests
- Enable Single Logout
- Enable Attribute Profile
- Include Attributes in the Response Always
Tip
For more information on the advanced configurations, see Advanced SAML Configurations.
-
Click Register to add the service provider and save the configurations.
Try it out¶
Now, let's log in to the application.
-
Start the Tomcat server and access the following URL on your browser:
http://localhost:8080/saml2-web-app-pickup-dispatch.com. -
Click Login and enter your user credentials.
-
Provide the required consent. You will be redirected to the Pickup Dispatch application home page.
You have successfully configured authentication for a SAML application.
Related topics