During installation the Janssen Server, make sure you have selected Jans KC to be installed.
Or You can install Jans KC with the following command:
python3 /opt/jans/jans-setup/jans_setup.py
In this tutorial, we are going to use Iamshowcase as a service provider. Lets create a TR, Apply following steps in Janssen Server:
- Download sp metadata:
wget https://sptest.iamshowcase.com/testsp_metadata.xml
- Open Jans TUI and navigate to Jans SAML > Service Providers > Add Service Provider:
- Release some attributes, for example:
email
,username
,transientID
- Finally Save it.
Since We are done at Janssen Server side, now let's connect SP with the IDP:
- browse and download IDP Metadata:
https://<yoour-janssen-server>/kc/realms/jans/protocol/saml/descriptor
- Go to: https://sptest.iamshowcase.com/instructions#spinit and upload the IDP metadata.
- It will give you an SP link to test the SAML SSO flow:
Copy that link and open it in a browser. You can open it in incognito mode to avoid session issue. So, It will redirect you to janssen login page. Once you logged in with user credentials it will redirect back to the SP's protected page and show the user session details.