mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
25 lines
963 B
Jsonnet
25 lines
963 B
Jsonnet
|
|
// IdP Type : Generic
|
|
// Client ID : keycloak
|
|
// Client Secret : lotsoflettersandnumbers
|
|
// Scopes : email, profile, openid, groups
|
|
// Issuer Url : https://keycloak.example.com/realms/paralus
|
|
// Auth Url : https://keycloak.example.com/realms/paralus/protocol/openid-connect/auth
|
|
// Token Url : https://keycloak.example.com/realms/paralus/protocol/openid-connect/token
|
|
// Callback Url : https://console.paralus.example.com/self-service/methods/oidc/callback/keycloak
|
|
|
|
local claims = {
|
|
email_verified: false,
|
|
} + std.extVar('claims');
|
|
|
|
{
|
|
identity: {
|
|
traits: {
|
|
[if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
|
|
[if "given_name" in claims then "first_name" else null]: claims.given_name,
|
|
[if "family_name" in claims then "last_name" else null]: claims.family_name,
|
|
[if "groups" in claims.raw_claims then "idp_groups" else null]: claims.raw_claims.groups,
|
|
},
|
|
},
|
|
}
|