This is an example Java project that leverages Spring Boot to illustrate how to easily implement Widen's Simple One-Way SSO, complete with fully functional examples.
Simply clone and run:
$ git clone [email protected]:widen/widen-sso-examples
$ cd widen-sso-examples/widen-simple-one-way-sso-java
$ ./gradlew bootRun
A running web application can now be accessed from http://localhost:8080 with the following resources available:
- http://localhost:8080/ - Root page with links to the following:
- http://localhost:8080/post (HTTP POST Example)
- http://localhost:8080/get (HTTP GET Example)
There are two configuration properties defined within the src/main/resources/application.properties
file. These can be modified to perform test validation against your own Collective endpoint using your supplied Shared Secret.
com.widen.sso.simple.endpoint=https://example.widencollective.com/auth/simple
com.widen.sso.simple.shared-secret=${random.uuid}