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
Click on
Identity providers
on the right sidebar menu.Setup your identity provider:
Disable showing your identity provider as additional option on the login page
Click on the identity provider
Open
Advanced Settings
and scroll down toHide on login page
and enable it
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
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
(Optional) enable two factor auth for the dashboard admin user in the Anchorpoint realm
Setup one time password with this guide here in the Anchorpoint realm
Add
Configure OTP
in theRequired user actions
for the admin user in the Anchorpoint realm
(Optional) enable two factor auth for the admin user in the Keycloak master realm
Create a backup admin user in the Keycloak master realm (in case something is setup wrong so you do not loose access to the Keycloak master realm)
Setup one time password with this guide here in the Keyckloak master realm
Add
Configure OTP
in theRequired user actions
for the admin user in the Keycloak master realm