lakshmiabinaya / saml-java

Sample SAML implementation
21 stars 40 forks source link

SAML Java

Sample SAML implementation for Java application

This project contains a simple SAML implementation for a java spring boot application

Configuration

Setting up IDP

Create an application corresponding to this test application in your IDP (ssoCircle/Okta/Onelogin).

Environment variables

APP_ID=<"APP ID from IDP">

ENTITY_ID=<"ENTITY ID FROM IDP">

IDP_METADATA_URL=<"METADATA URL for IDP">

Running the application

Start the SAMLApplication class and hit localhost:8443. You will be taken to your IDP and back to the index page once you provide valid login credentials. You can logout from the link provided in the index page.

Explanation

https://blog.imaginea.com/implementing-java-single-signon-with-saml/