Created
July 31, 2020 10:20
-
-
Save chamerling/60b716f5c2c933bc30e192a4f7969f04 to your computer and use it in GitHub Desktop.
keycloak configuration for openpaas SPA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "master", | |
"realm": "master", | |
"displayName": "Keycloak", | |
"displayNameHtml": "<div class=\"kc-logo-text\"><span>Keycloak</span></div>", | |
"notBefore": 0, | |
"revokeRefreshToken": false, | |
"refreshTokenMaxReuse": 0, | |
"accessTokenLifespan": 60, | |
"accessTokenLifespanForImplicitFlow": 900, | |
"ssoSessionIdleTimeout": 1800, | |
"ssoSessionMaxLifespan": 36000, | |
"ssoSessionIdleTimeoutRememberMe": 0, | |
"ssoSessionMaxLifespanRememberMe": 0, | |
"offlineSessionIdleTimeout": 2592000, | |
"offlineSessionMaxLifespanEnabled": false, | |
"offlineSessionMaxLifespan": 5184000, | |
"accessCodeLifespan": 60, | |
"accessCodeLifespanUserAction": 300, | |
"accessCodeLifespanLogin": 1800, | |
"actionTokenGeneratedByAdminLifespan": 43200, | |
"actionTokenGeneratedByUserLifespan": 300, | |
"enabled": true, | |
"sslRequired": "external", | |
"registrationAllowed": false, | |
"registrationEmailAsUsername": false, | |
"rememberMe": false, | |
"verifyEmail": false, | |
"loginWithEmailAllowed": true, | |
"duplicateEmailsAllowed": false, | |
"resetPasswordAllowed": false, | |
"editUsernameAllowed": false, | |
"bruteForceProtected": false, | |
"permanentLockout": false, | |
"maxFailureWaitSeconds": 900, | |
"minimumQuickLoginWaitSeconds": 60, | |
"waitIncrementSeconds": 60, | |
"quickLoginCheckMilliSeconds": 1000, | |
"maxDeltaTimeSeconds": 43200, | |
"failureFactor": 30, | |
"defaultRoles": [ | |
"offline_access", | |
"uma_authorization" | |
], | |
"requiredCredentials": [ | |
"password" | |
], | |
"otpPolicyType": "totp", | |
"otpPolicyAlgorithm": "HmacSHA1", | |
"otpPolicyInitialCounter": 0, | |
"otpPolicyDigits": 6, | |
"otpPolicyLookAheadWindow": 1, | |
"otpPolicyPeriod": 30, | |
"otpSupportedApplications": [ | |
"FreeOTP", | |
"Google Authenticator" | |
], | |
"scopeMappings": [ | |
{ | |
"clientScope": "offline_access", | |
"roles": [ | |
"offline_access" | |
] | |
} | |
], | |
"clients": [ | |
{ | |
"id": "b74027a0-0c6b-4874-b61e-5fc16e8ca405", | |
"clientId": "account", | |
"name": "${client_account}", | |
"baseUrl": "/auth/realms/master/account", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "**********", | |
"defaultRoles": [ | |
"manage-account", | |
"view-profile" | |
], | |
"redirectUris": [ | |
"/auth/realms/master/account/*" | |
], | |
"webOrigins": [], | |
"notBefore": 0, | |
"bearerOnly": false, | |
"consentRequired": false, | |
"standardFlowEnabled": true, | |
"implicitFlowEnabled": false, | |
"directAccessGrantsEnabled": false, | |
"serviceAccountsEnabled": false, | |
"publicClient": false, | |
"frontchannelLogout": false, | |
"protocol": "openid-connect", | |
"attributes": {}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": false, | |
"nodeReRegistrationTimeout": 0, | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
}, | |
{ | |
"id": "47b3f518-0bde-4b6e-b7cc-fd8c1776f6c5", | |
"clientId": "admin-cli", | |
"name": "${client_admin-cli}", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "**********", | |
"redirectUris": [], | |
"webOrigins": [], | |
"notBefore": 0, | |
"bearerOnly": false, | |
"consentRequired": false, | |
"standardFlowEnabled": false, | |
"implicitFlowEnabled": false, | |
"directAccessGrantsEnabled": true, | |
"serviceAccountsEnabled": false, | |
"publicClient": true, | |
"frontchannelLogout": false, | |
"protocol": "openid-connect", | |
"attributes": {}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": false, | |
"nodeReRegistrationTimeout": 0, | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
}, | |
{ | |
"id": "d56a9f11-e8dd-4550-bf92-c336e6ab138c", | |
"clientId": "broker", | |
"name": "${client_broker}", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "**********", | |
"redirectUris": [], | |
"webOrigins": [], | |
"notBefore": 0, | |
"bearerOnly": false, | |
"consentRequired": false, | |
"standardFlowEnabled": true, | |
"implicitFlowEnabled": false, | |
"directAccessGrantsEnabled": false, | |
"serviceAccountsEnabled": false, | |
"publicClient": false, | |
"frontchannelLogout": false, | |
"protocol": "openid-connect", | |
"attributes": {}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": false, | |
"nodeReRegistrationTimeout": 0, | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
}, | |
{ | |
"id": "6e55e32d-26a8-4bf3-aae6-08c5404a1613", | |
"clientId": "security-admin-console", | |
"name": "${client_security-admin-console}", | |
"baseUrl": "/auth/admin/master/console/index.html", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "**********", | |
"redirectUris": [ | |
"/auth/admin/master/console/*" | |
], | |
"webOrigins": [], | |
"notBefore": 0, | |
"bearerOnly": false, | |
"consentRequired": false, | |
"standardFlowEnabled": true, | |
"implicitFlowEnabled": false, | |
"directAccessGrantsEnabled": false, | |
"serviceAccountsEnabled": false, | |
"publicClient": true, | |
"frontchannelLogout": false, | |
"protocol": "openid-connect", | |
"attributes": {}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": false, | |
"nodeReRegistrationTimeout": 0, | |
"protocolMappers": [ | |
{ | |
"id": "9d810525-5782-4331-9ca0-bd0ffe849519", | |
"name": "locale", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "locale", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "locale", | |
"jsonType.label": "String" | |
} | |
} | |
], | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
}, | |
{ | |
"id": "80b75fe9-a313-4dc4-b8b7-21d233ffb019", | |
"clientId": "openpaas", | |
"rootUrl": "http://localhost:9900", | |
"adminUrl": "http://localhost:9900", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "0424a4c0-54f4-4fc5-8dab-29f994b5886a", | |
"redirectUris": [ | |
"http://localhost:9900/*" | |
], | |
"webOrigins": [ | |
"http://localhost:9900" | |
], | |
"notBefore": 0, | |
"bearerOnly": false, | |
"consentRequired": true, | |
"standardFlowEnabled": true, | |
"implicitFlowEnabled": true, | |
"directAccessGrantsEnabled": true, | |
"serviceAccountsEnabled": false, | |
"publicClient": false, | |
"frontchannelLogout": false, | |
"protocol": "openid-connect", | |
"attributes": { | |
"saml.assertion.signature": "false", | |
"saml.force.post.binding": "false", | |
"saml.multivalued.roles": "false", | |
"saml.encrypt": "false", | |
"saml.server.signature": "false", | |
"saml.server.signature.keyinfo.ext": "false", | |
"exclude.session.state.from.auth.response": "false", | |
"saml_force_name_id_format": "false", | |
"saml.client.signature": "false", | |
"tls.client.certificate.bound.access.tokens": "false", | |
"saml.authnstatement": "false", | |
"display.on.consent.screen": "true", | |
"saml.onetimeuse.condition": "false" | |
}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": true, | |
"nodeReRegistrationTimeout": -1, | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
}, | |
{ | |
"id": "ac9a8001-c7a9-413e-8e3f-eecd588484ca", | |
"clientId": "master-realm", | |
"name": "master Realm", | |
"surrogateAuthRequired": false, | |
"enabled": true, | |
"clientAuthenticatorType": "client-secret", | |
"secret": "**********", | |
"redirectUris": [], | |
"webOrigins": [], | |
"notBefore": 0, | |
"bearerOnly": true, | |
"consentRequired": false, | |
"standardFlowEnabled": true, | |
"implicitFlowEnabled": false, | |
"directAccessGrantsEnabled": false, | |
"serviceAccountsEnabled": false, | |
"publicClient": false, | |
"frontchannelLogout": false, | |
"attributes": {}, | |
"authenticationFlowBindingOverrides": {}, | |
"fullScopeAllowed": true, | |
"nodeReRegistrationTimeout": 0, | |
"defaultClientScopes": [ | |
"web-origins", | |
"role_list", | |
"profile", | |
"roles", | |
"email" | |
], | |
"optionalClientScopes": [ | |
"address", | |
"phone", | |
"offline_access", | |
"microprofile-jwt" | |
] | |
} | |
], | |
"clientScopes": [ | |
{ | |
"id": "8e2bc09e-8eaa-499f-9e59-caa713058b27", | |
"name": "address", | |
"description": "OpenID Connect built-in scope: address", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "true", | |
"display.on.consent.screen": "true", | |
"consent.screen.text": "${addressScopeConsentText}" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "84b51d5a-2041-4cbe-804e-076febb00a0f", | |
"name": "address", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-address-mapper", | |
"consentRequired": false, | |
"config": { | |
"user.attribute.formatted": "formatted", | |
"user.attribute.country": "country", | |
"user.attribute.postal_code": "postal_code", | |
"userinfo.token.claim": "true", | |
"user.attribute.street": "street", | |
"id.token.claim": "true", | |
"user.attribute.region": "region", | |
"access.token.claim": "true", | |
"user.attribute.locality": "locality" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "1def0f2a-3003-4536-918c-7e6166139dae", | |
"name": "email", | |
"description": "OpenID Connect built-in scope: email", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "true", | |
"display.on.consent.screen": "true", | |
"consent.screen.text": "${emailScopeConsentText}" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "7c6035ef-dd4f-4a8d-9729-47efb8638edc", | |
"name": "email", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "email", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "email", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "f905d48f-66c4-4d09-afbc-5101169a7865", | |
"name": "email verified", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "emailVerified", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "email_verified", | |
"jsonType.label": "boolean" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "c8a8e584-be33-402e-8400-d2920ee9b4f4", | |
"name": "microprofile-jwt", | |
"description": "Microprofile - JWT built-in scope", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "true", | |
"display.on.consent.screen": "false" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "74c3a57b-1340-43ae-92f5-092e927a7bb0", | |
"name": "groups", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-realm-role-mapper", | |
"consentRequired": false, | |
"config": { | |
"multivalued": "true", | |
"user.attribute": "foo", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "groups", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "73b7f88c-0121-47e3-bf3b-9712530da2c1", | |
"name": "upn", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "username", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "upn", | |
"jsonType.label": "String" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "c14f9669-8052-4fbf-8620-0c280e06027d", | |
"name": "offline_access", | |
"description": "OpenID Connect built-in scope: offline_access", | |
"protocol": "openid-connect", | |
"attributes": { | |
"consent.screen.text": "${offlineAccessScopeConsentText}", | |
"display.on.consent.screen": "true" | |
} | |
}, | |
{ | |
"id": "4a4f3e03-1128-45c5-9d6e-8aa1e3dce75d", | |
"name": "phone", | |
"description": "OpenID Connect built-in scope: phone", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "true", | |
"display.on.consent.screen": "true", | |
"consent.screen.text": "${phoneScopeConsentText}" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "67e7dd75-526c-406b-88d0-d4f83a6e8f9c", | |
"name": "phone number verified", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "phoneNumberVerified", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "phone_number_verified", | |
"jsonType.label": "boolean" | |
} | |
}, | |
{ | |
"id": "58459b51-c0ae-40ed-b9af-e0f20ceeedbc", | |
"name": "phone number", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "phoneNumber", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "phone_number", | |
"jsonType.label": "String" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "94e79fe6-191c-4172-964e-192af52d4f9b", | |
"name": "profile", | |
"description": "OpenID Connect built-in scope: profile", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "true", | |
"display.on.consent.screen": "true", | |
"consent.screen.text": "${profileScopeConsentText}" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "5ff40222-6905-4104-ac24-d821d5a24a53", | |
"name": "locale", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "locale", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "locale", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "608f15df-9f12-43db-b617-dc667d708f03", | |
"name": "username", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "username", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "preferred_username", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "d6c332bc-c965-4ce6-83d5-e06002e32df7", | |
"name": "picture", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "picture", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "picture", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "28a100ce-aa67-4a7a-8da2-0da1f2d601a1", | |
"name": "middle name", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "middleName", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "middle_name", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "68a87bce-2761-48e3-9b1b-0eceb3de8ad1", | |
"name": "gender", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "gender", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "gender", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "a4a82e06-7dc2-41c8-9722-ebcafc9fce68", | |
"name": "birthdate", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "birthdate", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "birthdate", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "2e06a2b5-f6d1-406e-b536-adc45dfa5edd", | |
"name": "website", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "website", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "website", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "ccaffdd9-3eab-48ec-aa7d-6b1848fc8db5", | |
"name": "updated at", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "updatedAt", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "updated_at", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "90229c63-9648-43d1-a060-e45a76f7b91e", | |
"name": "full name", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-full-name-mapper", | |
"consentRequired": false, | |
"config": { | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"userinfo.token.claim": "true" | |
} | |
}, | |
{ | |
"id": "9291cfc8-0f4e-4a7c-a608-15fce0a06cbc", | |
"name": "nickname", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "nickname", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "nickname", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "55df8f67-49dc-49eb-9086-ee64cbc99c49", | |
"name": "profile", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "profile", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "profile", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "38f707b5-0e29-48e1-8150-3607b5708876", | |
"name": "family name", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "lastName", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "family_name", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "982f8cc5-712f-4920-b632-a6d9333678c5", | |
"name": "zoneinfo", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-attribute-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "zoneinfo", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "zoneinfo", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "d9a76a8e-115d-4563-ba89-f0e45d65903d", | |
"name": "given name", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-property-mapper", | |
"consentRequired": false, | |
"config": { | |
"userinfo.token.claim": "true", | |
"user.attribute": "firstName", | |
"id.token.claim": "true", | |
"access.token.claim": "true", | |
"claim.name": "given_name", | |
"jsonType.label": "String" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "b1d944bd-7de2-4815-894b-87c7224a08c4", | |
"name": "role_list", | |
"description": "SAML role list", | |
"protocol": "saml", | |
"attributes": { | |
"consent.screen.text": "${samlRoleListScopeConsentText}", | |
"display.on.consent.screen": "true" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "13b250b8-8392-444a-a750-603749630a7b", | |
"name": "role list", | |
"protocol": "saml", | |
"protocolMapper": "saml-role-list-mapper", | |
"consentRequired": false, | |
"config": { | |
"single": "false", | |
"attribute.nameformat": "Basic", | |
"attribute.name": "Role" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "bd45cd97-2084-44e9-9cd6-bf4dd7abb6b0", | |
"name": "roles", | |
"description": "OpenID Connect scope for add user roles to the access token", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "false", | |
"display.on.consent.screen": "true", | |
"consent.screen.text": "${rolesScopeConsentText}" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "2984fc9f-9919-4daf-b3e0-502fb7a36d17", | |
"name": "client roles", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-client-role-mapper", | |
"consentRequired": false, | |
"config": { | |
"multivalued": "true", | |
"user.attribute": "foo", | |
"access.token.claim": "true", | |
"claim.name": "resource_access.${client_id}.roles", | |
"jsonType.label": "String" | |
} | |
}, | |
{ | |
"id": "f856fd8b-119f-4164-b373-3aae909165e3", | |
"name": "audience resolve", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-audience-resolve-mapper", | |
"consentRequired": false, | |
"config": {} | |
}, | |
{ | |
"id": "b941f529-4344-4800-a4d4-ae9ff5a53357", | |
"name": "realm roles", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-usermodel-realm-role-mapper", | |
"consentRequired": false, | |
"config": { | |
"multivalued": "true", | |
"user.attribute": "foo", | |
"access.token.claim": "true", | |
"claim.name": "realm_access.roles", | |
"jsonType.label": "String" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "afc37a15-a363-489b-a547-738c4810db7c", | |
"name": "web-origins", | |
"description": "OpenID Connect scope for add allowed web origins to the access token", | |
"protocol": "openid-connect", | |
"attributes": { | |
"include.in.token.scope": "false", | |
"display.on.consent.screen": "false", | |
"consent.screen.text": "" | |
}, | |
"protocolMappers": [ | |
{ | |
"id": "f3b9b97d-c7f3-4413-a6af-ccbc85398ba1", | |
"name": "allowed web origins", | |
"protocol": "openid-connect", | |
"protocolMapper": "oidc-allowed-origins-mapper", | |
"consentRequired": false, | |
"config": {} | |
} | |
] | |
} | |
], | |
"defaultDefaultClientScopes": [ | |
"email", | |
"profile", | |
"web-origins", | |
"role_list", | |
"roles" | |
], | |
"defaultOptionalClientScopes": [ | |
"phone", | |
"address", | |
"offline_access", | |
"microprofile-jwt" | |
], | |
"browserSecurityHeaders": { | |
"contentSecurityPolicyReportOnly": "", | |
"xContentTypeOptions": "nosniff", | |
"xRobotsTag": "none", | |
"xFrameOptions": "SAMEORIGIN", | |
"xXSSProtection": "1; mode=block", | |
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", | |
"strictTransportSecurity": "max-age=31536000; includeSubDomains" | |
}, | |
"smtpServer": {}, | |
"eventsEnabled": false, | |
"eventsListeners": [ | |
"jboss-logging" | |
], | |
"enabledEventTypes": [], | |
"adminEventsEnabled": false, | |
"adminEventsDetailsEnabled": false, | |
"components": { | |
"org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ | |
{ | |
"id": "fe6a8468-bbfd-4a33-9191-c582a3d0c8f1", | |
"name": "Consent Required", | |
"providerId": "consent-required", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": {} | |
}, | |
{ | |
"id": "3ce88e61-f556-4a80-8142-fcd95439afe5", | |
"name": "Allowed Protocol Mapper Types", | |
"providerId": "allowed-protocol-mappers", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": { | |
"allowed-protocol-mapper-types": [ | |
"oidc-sha256-pairwise-sub-mapper", | |
"oidc-usermodel-attribute-mapper", | |
"oidc-address-mapper", | |
"saml-user-property-mapper", | |
"oidc-usermodel-property-mapper", | |
"saml-role-list-mapper", | |
"saml-user-attribute-mapper", | |
"oidc-full-name-mapper" | |
] | |
} | |
}, | |
{ | |
"id": "a4b34814-b2f5-41a7-9f23-ca7a2f4f28c6", | |
"name": "Trusted Hosts", | |
"providerId": "trusted-hosts", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": { | |
"host-sending-registration-request-must-match": [ | |
"true" | |
], | |
"client-uris-must-match": [ | |
"true" | |
] | |
} | |
}, | |
{ | |
"id": "85ad6fa7-aea8-4f37-9ffa-545563c2783e", | |
"name": "Allowed Protocol Mapper Types", | |
"providerId": "allowed-protocol-mappers", | |
"subType": "authenticated", | |
"subComponents": {}, | |
"config": { | |
"allowed-protocol-mapper-types": [ | |
"oidc-sha256-pairwise-sub-mapper", | |
"saml-user-attribute-mapper", | |
"oidc-address-mapper", | |
"oidc-usermodel-attribute-mapper", | |
"oidc-usermodel-property-mapper", | |
"saml-role-list-mapper", | |
"saml-user-property-mapper", | |
"oidc-full-name-mapper" | |
] | |
} | |
}, | |
{ | |
"id": "b9dbe574-a44e-46cb-8a2c-272f57070e02", | |
"name": "Max Clients Limit", | |
"providerId": "max-clients", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": { | |
"max-clients": [ | |
"200" | |
] | |
} | |
}, | |
{ | |
"id": "b0d2cb87-73b6-48ea-badf-5fcf62cc11fa", | |
"name": "Allowed Client Scopes", | |
"providerId": "allowed-client-templates", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": { | |
"allow-default-scopes": [ | |
"true" | |
] | |
} | |
}, | |
{ | |
"id": "ba825138-9a88-4451-838b-f146e2ea5ea6", | |
"name": "Allowed Client Scopes", | |
"providerId": "allowed-client-templates", | |
"subType": "authenticated", | |
"subComponents": {}, | |
"config": { | |
"allow-default-scopes": [ | |
"true" | |
] | |
} | |
}, | |
{ | |
"id": "1c93d88b-e639-47e8-8419-1cdfb01475b6", | |
"name": "Full Scope Disabled", | |
"providerId": "scope", | |
"subType": "anonymous", | |
"subComponents": {}, | |
"config": {} | |
} | |
], | |
"org.keycloak.keys.KeyProvider": [ | |
{ | |
"id": "ade1cdad-c38b-4a5e-8249-352259d56c34", | |
"name": "aes-generated", | |
"providerId": "aes-generated", | |
"subComponents": {}, | |
"config": { | |
"priority": [ | |
"100" | |
] | |
} | |
}, | |
{ | |
"id": "2ffab2c8-00b1-4205-a85c-7cfbd5e86097", | |
"name": "rsa-generated", | |
"providerId": "rsa-generated", | |
"subComponents": {}, | |
"config": { | |
"priority": [ | |
"100" | |
] | |
} | |
}, | |
{ | |
"id": "f0b5ec49-ea36-4634-adb6-478951177577", | |
"name": "hmac-generated", | |
"providerId": "hmac-generated", | |
"subComponents": {}, | |
"config": { | |
"priority": [ | |
"100" | |
], | |
"algorithm": [ | |
"HS256" | |
] | |
} | |
} | |
] | |
}, | |
"internationalizationEnabled": false, | |
"supportedLocales": [], | |
"authenticationFlows": [ | |
{ | |
"id": "e4c88ffb-a9c1-4cca-b200-e60fd6d3cc66", | |
"alias": "Handle Existing Account", | |
"description": "Handle what to do if there is existing account with same email/username like authenticated identity provider", | |
"providerId": "basic-flow", | |
"topLevel": false, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "idp-confirm-link", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "idp-email-verification", | |
"requirement": "ALTERNATIVE", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"requirement": "ALTERNATIVE", | |
"priority": 30, | |
"flowAlias": "Verify Existing Account by Re-authentication", | |
"userSetupAllowed": false, | |
"autheticatorFlow": true | |
} | |
] | |
}, | |
{ | |
"id": "19abd0cb-6a54-4e67-ad8e-a0d3ca00031b", | |
"alias": "Verify Existing Account by Re-authentication", | |
"description": "Reauthentication of existing account", | |
"providerId": "basic-flow", | |
"topLevel": false, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "idp-username-password-form", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "auth-otp-form", | |
"requirement": "OPTIONAL", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "b2c88ddc-04e8-485b-91cc-78389b3edcce", | |
"alias": "browser", | |
"description": "browser based authentication", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "auth-cookie", | |
"requirement": "ALTERNATIVE", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "auth-spnego", | |
"requirement": "DISABLED", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "identity-provider-redirector", | |
"requirement": "ALTERNATIVE", | |
"priority": 25, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"requirement": "ALTERNATIVE", | |
"priority": 30, | |
"flowAlias": "forms", | |
"userSetupAllowed": false, | |
"autheticatorFlow": true | |
} | |
] | |
}, | |
{ | |
"id": "4afb32d3-0057-40c5-9fb4-801ad4706e49", | |
"alias": "clients", | |
"description": "Base authentication for clients", | |
"providerId": "client-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "client-secret", | |
"requirement": "ALTERNATIVE", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "client-jwt", | |
"requirement": "ALTERNATIVE", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "client-secret-jwt", | |
"requirement": "ALTERNATIVE", | |
"priority": 30, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "client-x509", | |
"requirement": "ALTERNATIVE", | |
"priority": 40, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "343c7a72-d756-4427-96b3-f7957d48f23a", | |
"alias": "direct grant", | |
"description": "OpenID Connect Resource Owner Grant", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "direct-grant-validate-username", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "direct-grant-validate-password", | |
"requirement": "REQUIRED", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "direct-grant-validate-otp", | |
"requirement": "OPTIONAL", | |
"priority": 30, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "8af8eab9-b26d-4eb6-93f0-aad997edccb8", | |
"alias": "docker auth", | |
"description": "Used by Docker clients to authenticate against the IDP", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "docker-http-basic-authenticator", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "df0d7e19-4947-4585-89c5-020c595c8e67", | |
"alias": "first broker login", | |
"description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticatorConfig": "review profile config", | |
"authenticator": "idp-review-profile", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticatorConfig": "create unique user config", | |
"authenticator": "idp-create-user-if-unique", | |
"requirement": "ALTERNATIVE", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"requirement": "ALTERNATIVE", | |
"priority": 30, | |
"flowAlias": "Handle Existing Account", | |
"userSetupAllowed": false, | |
"autheticatorFlow": true | |
} | |
] | |
}, | |
{ | |
"id": "6bb6cc01-e024-4d9a-8886-14a1fef529f2", | |
"alias": "forms", | |
"description": "Username, password, otp and other auth forms.", | |
"providerId": "basic-flow", | |
"topLevel": false, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "auth-username-password-form", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "auth-otp-form", | |
"requirement": "OPTIONAL", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "5f53add2-68b1-4bf3-ab4d-1cb9014040d3", | |
"alias": "http challenge", | |
"description": "An authentication flow based on challenge-response HTTP Authentication Schemes", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "no-cookie-redirect", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "basic-auth", | |
"requirement": "REQUIRED", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "basic-auth-otp", | |
"requirement": "DISABLED", | |
"priority": 30, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "auth-spnego", | |
"requirement": "DISABLED", | |
"priority": 40, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "6608f65c-7868-4b59-bb40-5481d21e91c2", | |
"alias": "registration", | |
"description": "registration flow", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "registration-page-form", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"flowAlias": "registration form", | |
"userSetupAllowed": false, | |
"autheticatorFlow": true | |
} | |
] | |
}, | |
{ | |
"id": "43f7a227-7670-4c12-868f-2400f9deee01", | |
"alias": "registration form", | |
"description": "registration form", | |
"providerId": "form-flow", | |
"topLevel": false, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "registration-user-creation", | |
"requirement": "REQUIRED", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "registration-profile-action", | |
"requirement": "REQUIRED", | |
"priority": 40, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "registration-password-action", | |
"requirement": "REQUIRED", | |
"priority": 50, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "registration-recaptcha-action", | |
"requirement": "DISABLED", | |
"priority": 60, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "06228942-4dd9-41f7-8ea3-0756f6970565", | |
"alias": "reset credentials", | |
"description": "Reset credentials for a user if they forgot their password or something", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "reset-credentials-choose-user", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "reset-credential-email", | |
"requirement": "REQUIRED", | |
"priority": 20, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "reset-password", | |
"requirement": "REQUIRED", | |
"priority": 30, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
}, | |
{ | |
"authenticator": "reset-otp", | |
"requirement": "OPTIONAL", | |
"priority": 40, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
}, | |
{ | |
"id": "4cac5695-5f88-4398-8499-7c2258a542e9", | |
"alias": "saml ecp", | |
"description": "SAML ECP Profile Authentication Flow", | |
"providerId": "basic-flow", | |
"topLevel": true, | |
"builtIn": true, | |
"authenticationExecutions": [ | |
{ | |
"authenticator": "http-basic-authenticator", | |
"requirement": "REQUIRED", | |
"priority": 10, | |
"userSetupAllowed": false, | |
"autheticatorFlow": false | |
} | |
] | |
} | |
], | |
"authenticatorConfig": [ | |
{ | |
"id": "53c4d811-d367-46e6-8248-088f97621f7c", | |
"alias": "create unique user config", | |
"config": { | |
"require.password.update.after.registration": "false" | |
} | |
}, | |
{ | |
"id": "65c84aac-ed7b-4c3c-b3d8-c6b4d00dbe7f", | |
"alias": "review profile config", | |
"config": { | |
"update.profile.on.first.login": "missing" | |
} | |
} | |
], | |
"requiredActions": [ | |
{ | |
"alias": "CONFIGURE_TOTP", | |
"name": "Configure OTP", | |
"providerId": "CONFIGURE_TOTP", | |
"enabled": true, | |
"defaultAction": false, | |
"priority": 10, | |
"config": {} | |
}, | |
{ | |
"alias": "terms_and_conditions", | |
"name": "Terms and Conditions", | |
"providerId": "terms_and_conditions", | |
"enabled": false, | |
"defaultAction": false, | |
"priority": 20, | |
"config": {} | |
}, | |
{ | |
"alias": "UPDATE_PASSWORD", | |
"name": "Update Password", | |
"providerId": "UPDATE_PASSWORD", | |
"enabled": true, | |
"defaultAction": false, | |
"priority": 30, | |
"config": {} | |
}, | |
{ | |
"alias": "UPDATE_PROFILE", | |
"name": "Update Profile", | |
"providerId": "UPDATE_PROFILE", | |
"enabled": true, | |
"defaultAction": false, | |
"priority": 40, | |
"config": {} | |
}, | |
{ | |
"alias": "VERIFY_EMAIL", | |
"name": "Verify Email", | |
"providerId": "VERIFY_EMAIL", | |
"enabled": true, | |
"defaultAction": false, | |
"priority": 50, | |
"config": {} | |
} | |
], | |
"browserFlow": "browser", | |
"registrationFlow": "registration", | |
"directGrantFlow": "direct grant", | |
"resetCredentialsFlow": "reset credentials", | |
"clientAuthenticationFlow": "clients", | |
"dockerAuthenticationFlow": "docker auth", | |
"attributes": { | |
"_browser_header.xXSSProtection": "1; mode=block", | |
"_browser_header.xFrameOptions": "SAMEORIGIN", | |
"_browser_header.strictTransportSecurity": "max-age=31536000; includeSubDomains", | |
"permanentLockout": "false", | |
"quickLoginCheckMilliSeconds": "1000", | |
"displayName": "Keycloak", | |
"_browser_header.xRobotsTag": "none", | |
"maxFailureWaitSeconds": "900", | |
"minimumQuickLoginWaitSeconds": "60", | |
"displayNameHtml": "<div class=\"kc-logo-text\"><span>Keycloak</span></div>", | |
"failureFactor": "30", | |
"maxDeltaTimeSeconds": "43200", | |
"_browser_header.xContentTypeOptions": "nosniff", | |
"offlineSessionMaxLifespan": "5184000", | |
"_browser_header.contentSecurityPolicyReportOnly": "", | |
"bruteForceProtected": "false", | |
"_browser_header.contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", | |
"waitIncrementSeconds": "60", | |
"offlineSessionMaxLifespanEnabled": "false" | |
}, | |
"keycloakVersion": "6.0.1", | |
"userManagedAccessAllowed": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment