Member-only story
Setting up WSO2 sample OAuth applications with WSO2 Identity Server
4 min readApr 30, 2019
JSP Web app — Authorization code grant flow
In WSO2 we have set of samples web apps designed to demonstrate the SSO flow. You can use these in order to try out the scenarios like SSO, Federation and etc.
Pre-requisites
- Clone the samples repo from https://github.com/wso2/samples-is/tree/master/sso-samples/oidc-sso-sample
- Do a maven clean install from the root of cloned repo samples-is
- Download tomcat (version 8 or above)
- Deploy the built oidc-sso-sample web apps (pickup-dispatch.war and pickup-manager.war) in tomcat and run the tomcat server
- Download WSO2 Identity Server and run it.
- Change the /etc/host file of your machine so that it will map localhost.com(host name of tomcat where your apps run ) with 127.0.0.1
127.0.0.1 localhost.com
Configurations
- Open the management console https://localhost:9443/carbon and login with admin user credentials.
- Add a service provider eg: pickup-dispatch and click on register.