SSO Setup in Keycloak#
ℹ️ Requires an Organization plan
In this guide explains how to setup another identity provider for Single Sign On
via Keycloak.
Login with the keycloak admin account under SERVER_URL/auth/admin. You can find the password for the keycloak admin account in your
.env
file underKEYCLOAK_PASSWORD
in your installation folder.Change the realm to the
anchorpoint
realm on the top right whereKeycloak
is selected by default.Setup your Identify Provider
Create a new Authentication flow for user account linking
Click on
Authentication
on the left sidebarClick on
Create flow
Set the name to
auto-link-browser
and the description tolink existing user accounts
. Set theFlow type
toBasic flow
and click onCreate
Click on
Add execution
and chooseCreate User If Unique
and clickAdd
Set the
Requirement
of theCreate User If Unique
toAlternative
Click
Add Step
and chooseAutomatically set existing user
and clickAdd
Set the
Requirement
of theAutomatically set existing user
toAlternative
Open the created Identify Provider from step 3 and scroll down to set
First login flow override
toauto-link-browser
and presssave
Create another new Authentication flow for the Anchorpoint client
Click on
Authentication
on the left sidebarClick on
Create flow
Set the name to
ap-client-browser
and the description toauth flow for Anchorpoint client browser login
. Set theFlow type
toBasic flow
and click onCreate
Click on
Add execution
and chooseCookie
and clickAdd
Set the
Requirement
of theCookie
toAlternative
Click
Add Step
and chooseIdentity Provider Redirector
and clickAdd
Set the
Requirement
of theIdentity Provider Redirector
toAlternative
Click on the
Settings
icon of theIdentity Provider Redirector
and setAlias
andDefault Identity Provider
to the name of the identity provider you created in step 3 and clickSave
Adjust the default browser Authentication flow
Click on
Authentication
on the left sidebarClick on
browser
flow (usually the first entry in the list)Click on
Settings
icon of theIdentity Provider Redirector
and setAlias
andDefault Identity Provider
to the name of the identity provider you created in step 3 and clickSave
Make sure that
Identity Provider Redirector
requirement is set toAlternative
Overwrite the Authentication flow of the anchorpoint-desktop-client
Click on
Clients
in the right sidebarClick on the
anchorpoint-desktop-client-...
client to edit itClick on the
Advanced
tabScroll all the way down to
Authentication flow overrides
and chooseap-client-browser
forBrowser Flow
and click onSave