title | redirect_from | |
---|---|---|
SAML with Keycloak |
|
Keycloak is an open source platform that can be used as a user directory to save user data while acting as the IdP for single sign-on.
For more information, check out our guide for authenticating with SAML.
Go to the Keycloak admin console and sign in as an administrator.
Create a user from Manage > Users. You'll need to populate the fields with an email, first name, and last name.
Once you've created at least one user, navigation tabs will appear at the top of the Users page. Go to Credentials to set password for your user.
Create a new SSO client from Manage > Clients > Create
metabase
in lowercase.SAML
from the dropdown.http://localhost:3000
, the URL would be http://localhost:3000/*
.(Optional, but recommended on test environments) Disable key signing for SSO client. See settings for signing SSO requests.
Map user attributes from Metabase to SSO client.
metabase-dedicated
.Configure the service provider (Metabase) from Configure > Realm Settings.
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location=
entityID=
.<X509Certificate>
tag. Take care when inserting this string: if any letters or special characters are added or off, the setup won't work.metabase
Keycloak can import four user attributes by default: name, surname, email and role.
Let's say we want email, name, and surname to be passed between the client (Metabase) and the authentication server (Keycloak).
You can edit the attribute values from your Metabase Admin settings > Authentication > SAML > Attributes.
You can configure Metabase to automatically assign people to Metabase groups based on their Keycloak groups.
In your Keycloak client:
member_of
.In Admin settings, go to Authentication > SAML.
In SAML settings, toggle on Synchronize Group Memberships
For each of the Keycloak groups, set up a new mapping to a Metabase group.
Currently, Keycloak groups will show up in Metabase with the slash character ("/") prepended to the group name. So, for example, a group named sales
in Keycloak show up in Metabase as /sales
.
In Group attribute name, enter member_of
(the name for the attribute with the group list in your Keycloack configuration).
For common issues, go to Troubleshooting SAML.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )