# Configuration
# Configure LS-AAI Identity Broker
Cytomine uses keycloak as IAM and also as a broker to negotiate with LS-AAI to authenticate users using authorization_code
flow and go to https://127.0.0.1/iam/realms/cytomine/.well-known/openid-configuration (opens new window) for the metadata, for configuration follow steps below:
# A. Configure the broker
- Access keycloak admin console https://127.0.0.1/iam/admin (opens new window) and authenticate using the default
admin
user and find the password for it incytomine.yml
underKEYCLOAK_ADMIN_PASSWORD
and notice this is not the cytomine admin. - Click
Identity Providers
in the menu. - From the
Add provider
list, selectOpenID Connect v1.0
orkeycloak openID connect
. Redirect URI
is prefilled- Enter display name as
LS_AAI
- Enter this link
https://login.aai.lifescience-ri.eu/oidc/.well-known/openid-configuration
inDiscovery Endpoint
for LS-AAI OIDC metadata - In
client authentication
selectClient secret set as basic auth
- Contact cytomine team at Uliege to get the
client ID
andclient secret
, clickcontact us
button below - Click save
# B. Map claims to roles
The following config assigns the role admin
to all external users and this is mandatory.
- Go to
Mappers
tab click onadd mapper
- Enter
name
for the mapper and keepsync mode override
as inherit - Select
Hardcoded Role Mapper
- From client
core
selectADMIN
role - Click save
once steps above are followed a new button appears in the login form to start the authentication process for users coming from other organizations.