diff --git a/README.md b/README.md index 53d23032..40c26545 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,35 @@ To stop the docker environment, run: docker-compose down ``` +### SSO/SAML configuration + +By default, SAML comes already configured as the default SSO backend. You also get an instance of keycloak running to test at http://localhost:3011/. + +Password is `admin/admin` and you can access the console at http://localhost:3011/admin/master/console/#/realms/StackStorm by default :) + +You also get access to user `stanley` (stanley@stackstorm.com) out of the box on the StackStorm keycloak realm. Password is `Ch@ngeMe` and this user is mapped to the `stackstorm-system-admin` role, which is in turn mapped to internal `system_admin` role via RBAC. + +These roles are already configured by default on keycloak for the sake of testing: +- stackstorm-admin +- stackstorm-system-admin +- stackstorm-observer + +And they map directly to the standard stackstorm RBAC groups: +``` + SYSTEM_ADMIN = "system_admin" # Special role which can't be revoked. + ADMIN = "admin" + OBSERVER = "observer" +``` + +The mapping is done at `files/rbac/mappings`. More details here https://docs.stackstorm.com/rbac.html + +For Keycloak to work with the SAML flow, there's a realm called `StackStorm`, and within it: + - the associated roles above, + - a client endpoint for SAML handling + - the stanley user + +This is contained in an exported file at `files/keycloak/stackstorn.json`, which is automatically imported during keycloak startup :) + ### Gotchas #### Startup errors diff --git a/docker-compose.yml b/docker-compose.yml index 02a2e248..dd363a8a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,16 +13,17 @@ services: - st2auth - st2api - st2stream + - st2client #required for initialization of packs and rbac healthcheck: - test: ["CMD", "/st2web-healthcheck.sh"] + test: [ "CMD", "/st2web-healthcheck.sh" ] interval: 30s timeout: 1s - retries: 1 + retries: 3 volumes: - ./scripts/st2web-healthcheck.sh:/st2web-healthcheck.sh # If you want to use a custom st2web config, edit ./files/config.js accordingly and # uncomment the line below - #- ./files/config.js:/opt/stackstorm/static/webui/config.js:ro + - ./files/config.js:/opt/stackstorm/static/webui/config.js:ro ports: - "${ST2_EXPOSE_HTTP:-127.0.0.1:80}:80" # - "${ST2_EXPOSE_HTTPS:-127.0.0.1:443}:443" @@ -98,6 +99,7 @@ services: image: ${ST2_IMAGE_REPO:-stackstorm/}st2auth:${ST2_VERSION:-latest} restart: on-failure depends_on: + - keycloak - st2api networks: - private @@ -185,7 +187,10 @@ services: - st2auth - st2api - st2stream - command: /st2client-startup.sh + command: + - /bin/bash + - -c + - /setup-rbac.sh && /st2client-startup.sh networks: - private environment: @@ -208,6 +213,7 @@ services: - ${ST2_PACKS_DEV:-./packs.dev}:/opt/stackstorm/packs.dev:rw - ./files/st2-cli.conf:/root/.st2/config - ./scripts/st2client-startup.sh:/st2client-startup.sh + - ./scripts/setup-rbac.sh:/setup-rbac.sh st2chatops: image: ${ST2_IMAGE_REPO:-stackstorm/}st2chatops:${ST2_VERSION:-latest} restart: on-failure:5 @@ -257,16 +263,40 @@ services: - private volumes: - stackstorm-redis:/data + keycloak: + image: quay.io/keycloak/keycloak:18.0.2 + restart: on-failure + command: + [ + "start-dev", # dev needed otherwise we need https certs + "--http-port 3011", + "--log-level=info", + "--hostname=localhost", + "--import-realm" + ] + environment: + KEYCLOAK_LOGLEVEL: INFO + KEYCLOAK_ADMIN: admin + KEYCLOAK_ADMIN_PASSWORD: admin + volumes: + - ./files/keycloak/:/opt/keycloak/data/import/:ro + networks: + - private + - public + ports: + - "${ST2_EXPOSE_KEYCLOAK_HTTP:-127.0.0.1:3011}:3011" volumes: - stackstorm-mongodb: - stackstorm-rabbitmq: - stackstorm-redis: - stackstorm-packs: - stackstorm-packs-configs: - stackstorm-keys: - stackstorm-virtualenvs: - stackstorm-ssh: + stackstorm-mongodb: + stackstorm-rabbitmq: + stackstorm-redis: + stackstorm-packs: + stackstorm-packs-configs: + stackstorm-keys: + stackstorm-virtualenvs: + stackstorm-ssh: + keycloak: + networks: public: diff --git a/files/config.js b/files/config.js index 1580f813..5c8ba896 100644 --- a/files/config.js +++ b/files/config.js @@ -34,5 +34,7 @@ angular.module('main') // auth: '//172.168.90.50:9101/auth', // }, // ], + + ssoEnabled: true }); diff --git a/files/keycloak/stackstorm.json b/files/keycloak/stackstorm.json new file mode 100644 index 00000000..3ce5584c --- /dev/null +++ b/files/keycloak/stackstorm.json @@ -0,0 +1,4762 @@ +{ + "id": "StackStorm", + "realm": "StackStorm", + "notBefore": 0, + "defaultSignatureAlgorithm": "RS256", + "revokeRefreshToken": false, + "refreshTokenMaxReuse": 0, + "accessTokenLifespan": 300, + "accessTokenLifespanForImplicitFlow": 900, + "ssoSessionIdleTimeout": 1800, + "ssoSessionMaxLifespan": 36000, + "ssoSessionIdleTimeoutRememberMe": 0, + "ssoSessionMaxLifespanRememberMe": 0, + "offlineSessionIdleTimeout": 2592000, + "offlineSessionMaxLifespanEnabled": false, + "offlineSessionMaxLifespan": 5184000, + "clientSessionIdleTimeout": 0, + "clientSessionMaxLifespan": 0, + "clientOfflineSessionIdleTimeout": 0, + "clientOfflineSessionMaxLifespan": 0, + "accessCodeLifespan": 60, + "accessCodeLifespanUserAction": 300, + "accessCodeLifespanLogin": 1800, + "actionTokenGeneratedByAdminLifespan": 43200, + "actionTokenGeneratedByUserLifespan": 300, + "oauth2DeviceCodeLifespan": 600, + "oauth2DevicePollingInterval": 5, + "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, + "roles": { + "realm": [ + { + "id": "f18840ba-2e45-4191-a16d-fc2bd62643b8", + "name": "stackstorm-system-admin", + "composite": false, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + }, + { + "id": "82ed08d6-d2a2-41d9-974e-83ebb577a603", + "name": "default-roles-stackstorm", + "description": "${role_default-roles}", + "composite": true, + "composites": { + "realm": [ + "offline_access", + "uma_authorization" + ], + "client": { + "account": [ + "view-profile", + "manage-account" + ] + } + }, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + }, + { + "id": "7bfe82eb-481b-4770-8f5b-e366fb80ad1f", + "name": "stackstorm-admin", + "composite": false, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + }, + { + "id": "1fd6908f-cd03-4496-a343-934e2afb100f", + "name": "stackstorm-observer", + "composite": false, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + }, + { + "id": "f9b1cc07-2e5e-4cf3-acbb-362ede8593a3", + "name": "uma_authorization", + "description": "${role_uma_authorization}", + "composite": false, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + }, + { + "id": "e6cf4bb8-1e0c-4766-ab7e-28d5bc616a14", + "name": "offline_access", + "description": "${role_offline-access}", + "composite": false, + "clientRole": false, + "containerId": "StackStorm", + "attributes": {} + } + ], + "client": { + "realm-management": [ + { + "id": "aa926c28-780f-491c-a8f8-44b749febfe1", + "name": "query-users", + "description": "${role_query-users}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "fac00a69-e259-42a3-b342-0c25e46afa04", + "name": "query-clients", + "description": "${role_query-clients}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "bfb85d50-fe29-4e60-a49c-d1d3175b9593", + "name": "manage-events", + "description": "${role_manage-events}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "59969e67-8198-4764-bdf5-12e123f637e1", + "name": "view-realm", + "description": "${role_view-realm}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "6663f020-2f94-469f-8765-cd5e07af49ac", + "name": "manage-realm", + "description": "${role_manage-realm}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "d78bbc03-23eb-47f3-a49b-566b788b305f", + "name": "manage-clients", + "description": "${role_manage-clients}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "6fd69c89-b7de-4c5c-91eb-509b45d9822a", + "name": "impersonation", + "description": "${role_impersonation}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "db9b0416-db41-4812-8207-3be48e3cfad2", + "name": "view-authorization", + "description": "${role_view-authorization}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "43863e5c-a0bd-4a06-9fe4-dc0ac7b39b14", + "name": "manage-identity-providers", + "description": "${role_manage-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "16eff840-d6d6-4824-93e4-0ce17326bc63", + "name": "query-realms", + "description": "${role_query-realms}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "31cd9103-d7c6-4900-a04d-f5c978328138", + "name": "realm-admin", + "description": "${role_realm-admin}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-users", + "query-clients", + "manage-events", + "view-realm", + "manage-realm", + "manage-clients", + "impersonation", + "view-authorization", + "query-realms", + "manage-identity-providers", + "view-users", + "view-events", + "manage-authorization", + "view-clients", + "create-client", + "view-identity-providers", + "manage-users", + "query-groups" + ] + } + }, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "e63be8de-dd83-4bcb-a3ce-da998430a3b9", + "name": "view-users", + "description": "${role_view-users}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-users", + "query-groups" + ] + } + }, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "7d942bf1-5e96-46ef-8f3a-83df7528bb24", + "name": "view-events", + "description": "${role_view-events}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "3590fb82-4fc2-4ac6-9819-e056c564f39a", + "name": "manage-authorization", + "description": "${role_manage-authorization}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "477cba6b-60c2-4f3d-9e63-61e0f85a2925", + "name": "view-clients", + "description": "${role_view-clients}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-clients" + ] + } + }, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "01cad2a1-018f-4ec4-b942-14212cf3852a", + "name": "create-client", + "description": "${role_create-client}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "53b49961-07ba-48f0-be80-80ec5f68214b", + "name": "view-identity-providers", + "description": "${role_view-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "228ae17b-1f5d-450e-aacb-1c636f21f5a4", + "name": "manage-users", + "description": "${role_manage-users}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + }, + { + "id": "0dbe117f-3bd9-495d-ad61-11da7d9cf052", + "name": "query-groups", + "description": "${role_query-groups}", + "composite": false, + "clientRole": true, + "containerId": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "attributes": {} + } + ], + "security-admin-console": [], + "admin-cli": [], + "account-console": [], + "broker": [ + { + "id": "fca2805f-1879-4d21-811f-0a86937205c5", + "name": "read-token", + "description": "${role_read-token}", + "composite": false, + "clientRole": true, + "containerId": "d15c337d-3379-42fa-b8d0-0f21ebcdd97c", + "attributes": {} + } + ], + "account": [ + { + "id": "54d1458a-500c-4da4-98ba-84a02c53a8a5", + "name": "view-profile", + "description": "${role_view-profile}", + "composite": false, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "01c0c8f9-d160-471c-9799-6ea847338a15", + "name": "delete-account", + "description": "${role_delete-account}", + "composite": false, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "57c40df2-1159-4f49-b5c9-23620b4b5471", + "name": "manage-account", + "description": "${role_manage-account}", + "composite": true, + "composites": { + "client": { + "account": [ + "manage-account-links" + ] + } + }, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "cdc026b2-da65-48de-89e4-d5c7f6deb863", + "name": "view-applications", + "description": "${role_view-applications}", + "composite": false, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "a4364e22-202f-40cd-8655-60cf9b7df616", + "name": "manage-consent", + "description": "${role_manage-consent}", + "composite": true, + "composites": { + "client": { + "account": [ + "view-consent" + ] + } + }, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "f80568b5-5e10-4544-b4a9-0e88efbdd9c0", + "name": "view-consent", + "description": "${role_view-consent}", + "composite": false, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + }, + { + "id": "19a0b446-2e51-4272-895e-6264eca36c4a", + "name": "manage-account-links", + "description": "${role_manage-account-links}", + "composite": false, + "clientRole": true, + "containerId": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "attributes": {} + } + ] + } + }, + "groups": [], + "defaultRole": { + "id": "82ed08d6-d2a2-41d9-974e-83ebb577a603", + "name": "default-roles-stackstorm", + "description": "${role_default-roles}", + "composite": true, + "clientRole": false, + "containerId": "StackStorm" + }, + "requiredCredentials": [ + "password" + ], + "otpPolicyType": "totp", + "otpPolicyAlgorithm": "HmacSHA1", + "otpPolicyInitialCounter": 0, + "otpPolicyDigits": 6, + "otpPolicyLookAheadWindow": 1, + "otpPolicyPeriod": 30, + "otpSupportedApplications": [ + "FreeOTP", + "Google Authenticator" + ], + "webAuthnPolicyRpEntityName": "keycloak", + "webAuthnPolicySignatureAlgorithms": [ + "ES256" + ], + "webAuthnPolicyRpId": "", + "webAuthnPolicyAttestationConveyancePreference": "not specified", + "webAuthnPolicyAuthenticatorAttachment": "not specified", + "webAuthnPolicyRequireResidentKey": "not specified", + "webAuthnPolicyUserVerificationRequirement": "not specified", + "webAuthnPolicyCreateTimeout": 0, + "webAuthnPolicyAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyAcceptableAaguids": [], + "webAuthnPolicyPasswordlessRpEntityName": "keycloak", + "webAuthnPolicyPasswordlessSignatureAlgorithms": [ + "ES256" + ], + "webAuthnPolicyPasswordlessRpId": "", + "webAuthnPolicyPasswordlessAttestationConveyancePreference": "not specified", + "webAuthnPolicyPasswordlessAuthenticatorAttachment": "not specified", + "webAuthnPolicyPasswordlessRequireResidentKey": "not specified", + "webAuthnPolicyPasswordlessUserVerificationRequirement": "not specified", + "webAuthnPolicyPasswordlessCreateTimeout": 0, + "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyPasswordlessAcceptableAaguids": [], + "users": [ + { + "id": "68e26201-7090-4065-9e02-da482aa9aa0d", + "createdTimestamp": 1658327926095, + "username": "stanley", + "enabled": true, + "totp": false, + "emailVerified": true, + "credentials": [ + { + "id": "4ea9663f-a899-4f64-8276-2ea3c18e6ca1", + "type": "password", + "createdDate": 1658327942520, + "secretData": "{\"value\":\"RztBRJeLBG/ebJAPk31nWJZKDS81/ujOB/epZPkVbTRhN0MBmNEqP/HBzRFcbVJn9nQ3BcKzXhFnTtloy9fXLQ==\",\"salt\":\"ZoXWiydsEdX8Raikrx9yOw==\",\"additionalParameters\":{}}", + "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}" + } + ], + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "stackstorm-system-admin", + "default-roles-stackstorm" + ], + "notBefore": 0, + "groups": [] + } + ], + "scopeMappings": [ + { + "clientScope": "offline_access", + "roles": [ + "offline_access" + ] + } + ], + "clientScopeMappings": { + "account": [ + { + "client": "account-console", + "roles": [ + "manage-account" + ] + } + ] + }, + "clients": [ + { + "id": "9514907e-89df-4231-88d1-738b65595920", + "clientId": "http://localhost", + "adminUrl": "http://localhost/auth/v1/sso/request", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "**********", + "redirectUris": [ + "https://localhost/*", + "*", + "http://localhost/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": true, + "protocol": "saml", + "attributes": { + "saml.force.post.binding": "true", + "saml.multivalued.roles": "false", + "oauth2.device.authorization.grant.enabled": "false", + "backchannel.logout.revoke.offline.tokens": "false", + "saml.server.signature.keyinfo.ext": "false", + "use.refresh.tokens": "true", + "saml.signing.certificate": "MIICozCCAYsCBgF/vGeSXzANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDDApzdGFja3N0b3JtMB4XDTIyMDMyNDE0NDc1OFoXDTMyMDMyNDE0NDkzOFowFTETMBEGA1UEAwwKc3RhY2tzdG9ybTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJMQ50ea1WMicAmHtbQJj/U7HXEHkRAnY1m3Dvr5qfDQnbSbDDSlHWy9OxK50tBGLWR7piFgQ2qi/20s0+mG9fvRI2UYPwCPECYzVrVmZxGqL6tX+iv8XkzCSpzOtLGaYT+1yhyHbe+d8CfXmYkiAfy/VjBN2bNm8auP8ihi6XVpRNkPA0zBHwzvXNqe0KdkvvD92beZmreZrJjfHyrPvLwUKLPi+4EYCFYQVCl/ZhgfklOTpY3ZLvL5V/uekaEb3ZlhE3NxLkqp6xdA5JR5weOrWL+1NoDCAqBn1ujqcEPalcE+e8hfyuGFTAZOUkbZXKAE2d3AfM6x8j2QXqNls60CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEANOIzLsE6U79FQDwkkRVaLxWVEjFs5Yt6PjfJ0Avhrlbhjas+Mpw80hfs5C0zVfmlKc+p70Xu1Fsv6uUWYOuSa5XnS6VV4bX7+PjM1TX9jjRuyTSi6gY5cln6EwuMx4VTVEFjEzvxyxuX0kJuYELHrD2oJx0MTV0lYWQlQvl/ndGgCqu0IKv7JxFfAyMsPmqyw6J67mE9GLmykAFfFf0gJDvX5Rw+iNbIyvqLOu6hrC8ikxCTgoWuTxtkePyQHCZdtmYqxJ40eG1FXGcGGDttbuIqPSD8OVAvrtUdcavlXkqyNGgBogdX+MKVNd4OLM9ygP50m/AOrXw5jzZim8RyQw==", + "oidc.ciba.grant.enabled": "false", + "backchannel.logout.session.required": "false", + "client_credentials.use_refresh_token": "false", + "saml.signature.algorithm": "RSA_SHA256", + "require.pushed.authorization.requests": "false", + "saml.client.signature": "false", + "saml.signing.private.key": "MIIEpAIBAAKCAQEAkxDnR5rVYyJwCYe1tAmP9TsdcQeRECdjWbcO+vmp8NCdtJsMNKUdbL07ErnS0EYtZHumIWBDaqL/bSzT6Yb1+9EjZRg/AI8QJjNWtWZnEaovq1f6K/xeTMJKnM60sZphP7XKHIdt753wJ9eZiSIB/L9WME3Zs2bxq4/yKGLpdWlE2Q8DTMEfDO9c2p7Qp2S+8P3Zt5mat5msmN8fKs+8vBQos+L7gRgIVhBUKX9mGB+SU5Oljd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ubVwZAjJtcMakhJJ/GSG9tlrkFihCxKGXpRUEa9wWQEkSQYcexS4bmV6WJADwREYZ9gOPx1XPCQucm4GJRU56tklLV53evkCgYBGuiaL9Dl5qlYHNnvLDWeP30yOEHj2HlNZI0ew2g59qBEDGEhaa8RJL76r9f9ktD9knifKQbA3nb1DL4olK82ZtnD61kqTIBb6E7QgMj+UWxJB2uQ+WJCBu3DTGcWHLuex7VW5xBQtKVB+FlZdBIpbXsmsx/VPPaM2Sl5O9zTNuA==", + "id.token.as.detached.signature": "false", + "saml.assertion.signature": "true", + "saml.encrypt": "false", + "saml.server.signature": "true", + "exclude.session.state.from.auth.response": "false", + "saml.artifact.binding.identifier": "hSOrgGWmkzjVAGw0MQ3I0sAXnrs=", + "saml.artifact.binding": "false", + "saml_force_name_id_format": "false", + "acr.loa.map": "{}", + "tls.client.certificate.bound.access.tokens": "false", + "saml.authnstatement": "true", + "display.on.consent.screen": "false", + "saml_name_id_format": "username", + "token.response.type.bearer.lower-case": "false", + "saml.onetimeuse.condition": "false", + "saml_signature_canonicalization_method": "http://www.w3.org/2001/10/xml-exc-c14n#" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "protocolMappers": [ + { + "id": "d54060db-c3e5-43bf-a95e-bc5d0b97ddd6", + "name": "X500 surname", + "protocol": "saml", + "protocolMapper": "saml-user-property-mapper", + "consentRequired": false, + "config": { + "attribute.nameformat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri", + "user.attribute": "LastName", + "friendly.name": "LastName", + "attribute.name": "LastName" + } + }, + { + "id": "c73abdb5-91a4-4e25-b2cf-fea02a932991", + "name": "X500 givenName", + "protocol": "saml", + "protocolMapper": "saml-user-property-mapper", + "consentRequired": false, + "config": { + "attribute.nameformat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri", + "user.attribute": "FirstName", + "friendly.name": "FirstName", + "attribute.name": "FirstName" + } + }, + { + "id": "bfc0a2e1-fecf-4ea7-b6a1-9cdac31dfb67", + "name": "X500 email", + "protocol": "saml", + "protocolMapper": "saml-user-property-mapper", + "consentRequired": false, + "config": { + "attribute.nameformat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri", + "user.attribute": "Email", + "friendly.name": "Email", + "attribute.name": "Email" + } + }, + { + "id": "71afbab3-de03-4570-8fb0-20087a0ee266", + "name": "username", + "protocol": "saml", + "protocolMapper": "saml-javascript-mapper", + "consentRequired": false, + "config": { + "single": "true", + "Script": "/**\n * Available variables: \n * user - the current user\n * realm - the current realm\n * clientSession - the current clientSession\n * userSession - the current userSession\n * keycloakSession - the current keycloakSession\n */\n\n\nexports = user.getUsername()", + "friendly.name": "Username", + "attribute.name": "Username" + } + } + ], + "defaultClientScopes": [ + "role_list" + ], + "optionalClientScopes": [] + }, + { + "id": "4f37714e-9051-4e9f-aa4a-f9cdba267444", + "clientId": "account", + "name": "${client_account}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/StackStorm/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/StackStorm/account/*" + ], + "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, + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "8c472e7d-469b-4ae6-9bca-0ee4ff264e9a", + "clientId": "account-console", + "name": "${client_account-console}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/StackStorm/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/StackStorm/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "b0d793e2-d8ba-480a-85ee-38279c247028", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "0a1d2381-5f47-4c67-9637-5d8cabdd3c9b", + "clientId": "admin-cli", + "name": "${client_admin-cli}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-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", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "d15c337d-3379-42fa-b8d0-0f21ebcdd97c", + "clientId": "broker", + "name": "${client_broker}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": true, + "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", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "11886621-e3d4-4267-a1cd-f1ba7b6adb55", + "clientId": "realm-management", + "name": "${client_realm-management}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": true, + "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", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "e7b0690d-4cca-4963-bb3c-011726dd2ee0", + "clientId": "security-admin-console", + "name": "${client_security-admin-console}", + "rootUrl": "${authAdminUrl}", + "baseUrl": "/admin/StackStorm/console/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/admin/StackStorm/console/*" + ], + "webOrigins": [ + "+" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "22f7dc9a-cb8a-4e3f-afcb-94377ed5a14a", + "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", + "acr", + "roles", + "profile", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + } + ], + "clientScopes": [ + { + "id": "09f0202f-0099-4eea-97df-a2c255726556", + "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": "3c0015d8-8c06-464d-9945-7f793fb428c3", + "name": "allowed web origins", + "protocol": "openid-connect", + "protocolMapper": "oidc-allowed-origins-mapper", + "consentRequired": false, + "config": {} + } + ] + }, + { + "id": "ae8416ad-7288-4225-965d-976007aba181", + "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": "e718886a-2ed8-43f6-b5c6-463d790f1514", + "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": "67413979-79c7-4738-bf8f-d0baf3d2478d", + "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": "c2c1d8a9-ff1c-476a-95bc-5dd90232ba42", + "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": "44a48a0d-2fee-4622-a868-7dab8d2dda6a", + "name": "realm roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-realm-role-mapper", + "consentRequired": false, + "config": { + "user.attribute": "foo", + "access.token.claim": "true", + "claim.name": "realm_access.roles", + "jsonType.label": "String", + "multivalued": "true" + } + }, + { + "id": "66d0aa94-32ea-4b98-a816-f5497a157952", + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "user.attribute": "foo", + "access.token.claim": "true", + "claim.name": "resource_access.${client_id}.roles", + "jsonType.label": "String", + "multivalued": "true" + } + }, + { + "id": "9f9323c1-bc07-4e9b-80af-d8a148262765", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + } + ] + }, + { + "id": "d0829b4a-8fba-4ddf-8a32-990b5774d335", + "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": "c8e0cb53-e703-4b4a-961f-092baeea0261", + "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": "49ec8468-ce70-47aa-8499-346482c66616", + "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": "ad05964f-b8ba-45d9-a5bb-f7d39fd16d03", + "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": "29d8f355-5c7a-4f0d-9a56-6f55d253b20f", + "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": "long" + } + }, + { + "id": "8989967f-aea6-4c2d-98d0-3bb4aad4b225", + "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": "e8eba1a2-fce7-414d-bf72-4daab1cb721c", + "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": "ec625f5f-a9e8-4066-a3a2-841033ba4032", + "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": "374b9c65-e10d-408b-8333-3512af0f50a9", + "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": "fb6550c2-352a-40b6-afd7-ba7e495d17c9", + "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": "313449c6-1cb4-40f1-af4f-080ec6ec160f", + "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": "c43e00c7-aef5-4739-b994-64db59584d07", + "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": "989c4176-11a2-4c0e-bb82-1d25ebb0dc6b", + "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": "b1eb006d-5ef7-4cc6-a25b-c2811848ea48", + "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": "5ae1300a-aa10-4359-8e68-4315c727bbb6", + "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": "5346c255-c4cb-4b78-96ca-2569a815e025", + "name": "role_list", + "description": "SAML role list", + "protocol": "saml", + "attributes": { + "consent.screen.text": "${samlRoleListScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "0bbed7e4-2d38-4257-bbda-f89ca5a325f2", + "name": "role list", + "protocol": "saml", + "protocolMapper": "saml-role-list-mapper", + "consentRequired": false, + "config": { + "single": "false", + "attribute.nameformat": "Basic", + "attribute.name": "Role" + } + } + ] + }, + { + "id": "6e851743-f50e-4d9c-9fac-49fdb36fafb1", + "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": "aee87036-01a1-4291-b0dd-22f351d0130e", + "name": "acr", + "description": "OpenID Connect scope for add acr (authentication context class reference) to the token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "b07a47de-da7c-416b-89ee-0d3eb7b535c7", + "name": "acr loa level", + "protocol": "openid-connect", + "protocolMapper": "oidc-acr-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "38b7744a-b3a3-46cc-9811-5411e45d6c9c", + "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": "34212059-dd47-4889-aea1-95ef948390fb", + "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": "258fea8d-5170-4c4c-8794-ff80b942bae0", + "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": "552b2e1e-ca50-4532-8cd1-c67510bae2cc", + "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": "93dc6b51-bfc0-41af-a196-29904c6cc198", + "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": "d7903f1e-82a7-4dde-ba4a-fec2cb25cd3e", + "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": "f02ea106-5f50-4380-a5a0-324e697ca626", + "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": "c18d1d07-8cd5-4f3f-aaa3-edadc007498f", + "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" + } + } + ] + } + ], + "defaultDefaultClientScopes": [ + "role_list", + "profile", + "email", + "roles", + "web-origins", + "acr" + ], + "defaultOptionalClientScopes": [ + "offline_access", + "address", + "phone", + "microprofile-jwt" + ], + "browserSecurityHeaders": { + "contentSecurityPolicyReportOnly": "", + "xContentTypeOptions": "nosniff", + "xRobotsTag": "none", + "xFrameOptions": "SAMEORIGIN", + "contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", + "xXSSProtection": "1; mode=block", + "strictTransportSecurity": "max-age=31536000; includeSubDomains" + }, + "smtpServer": {}, + "eventsEnabled": false, + "eventsListeners": [ + "jboss-logging" + ], + "enabledEventTypes": [], + "adminEventsEnabled": false, + "adminEventsDetailsEnabled": false, + "identityProviders": [], + "identityProviderMappers": [], + "components": { + "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ + { + "id": "3e46750e-4c27-46c7-94b1-41e44d3bb945", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "61ef6003-c367-487e-8154-4ffc9c71dd58", + "name": "Full Scope Disabled", + "providerId": "scope", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "be73706c-eb45-4c41-9de1-240dad7cc360", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "saml-user-attribute-mapper", + "saml-user-property-mapper", + "oidc-address-mapper", + "oidc-full-name-mapper", + "oidc-sha256-pairwise-sub-mapper", + "oidc-usermodel-attribute-mapper", + "saml-role-list-mapper", + "oidc-usermodel-property-mapper" + ] + } + }, + { + "id": "cb053206-964b-4677-bee6-b8f116fa1690", + "name": "Consent Required", + "providerId": "consent-required", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "db358b05-32a3-42db-8521-9087c39b4230", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-usermodel-property-mapper", + "oidc-sha256-pairwise-sub-mapper", + "saml-role-list-mapper", + "oidc-address-mapper", + "oidc-usermodel-attribute-mapper", + "saml-user-attribute-mapper", + "saml-user-property-mapper", + "oidc-full-name-mapper" + ] + } + }, + { + "id": "68980455-5cf9-408f-848a-2ebc0e32efc7", + "name": "Max Clients Limit", + "providerId": "max-clients", + "subType": "anonymous", + "subComponents": {}, + "config": { + "max-clients": [ + "200" + ] + } + }, + { + "id": "586d2395-cc2c-469a-9759-9328fb46cd8f", + "name": "Trusted Hosts", + "providerId": "trusted-hosts", + "subType": "anonymous", + "subComponents": {}, + "config": { + "host-sending-registration-request-must-match": [ + "true" + ], + "client-uris-must-match": [ + "true" + ] + } + }, + { + "id": "31d428f7-1021-4100-b546-27a2430c5744", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + } + ], + "org.keycloak.keys.KeyProvider": [ + { + "id": "4edd2dd4-2d68-4f1a-b819-dc37fd5237d4", + "name": "rsa-enc-generated", + "providerId": "rsa-enc-generated", + "subComponents": {}, + "config": { + "privateKey": [ + "MIIEpQIBAAKCAQEAvJtFTobbKCwZclEgCnaA30a8I1/+nx1PyiWLkvfiVoCEepbmnuznqNpMf+PqLNzrZy4d/VMdRTgRVyj0udG/RfQiQhRf2PJllyObVA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elUFEN4wzJGi4EooPgSwrgl5IM/mTFWqR/H2cr+odVh7CcEEVnJNK9p+q5krHlchXgkDvoEP81utxKEj+k8p+reaOYoZmmBLAW86is6fN6swtR2jWccX/NFAwnGw8LMTTFFZDfGm9IocvnohOedx1KWQstWSMt1gh+DT2G7bfHItSlRrNd7iDos+67fd1tobrluixog28uwgO5GWjIcBv8IzQ5HYx9IfSP8rV2zZ2/lspNH2QfgNmkYwM4A==" + ], + "priority": [ + "100" + ], + "algorithm": [ + "RSA-OAEP" + ] + } + }, + { + "id": "7f0ce2af-342c-4304-8d47-2e384e40865d", + "name": "rsa-generated", + "providerId": "rsa-generated", + "subComponents": {}, + "config": { + "privateKey": [ + "MIIEowIBAAKCAQEAlrwjQf5nrfEm5Kpq/P4gtVcsA7OuN23KNwccQfJDF6bf1jzsOCCXkaknS6+qTsbRZ13E9FRXEeInP+VRHbsJQZQVeITnyexamljdINAt3pnq8ahcBFV525T+QeferGcStu8JkJYuOCGr2FiViia7Xv5L+PJw3S+HMZtIYdLCdlsx8cG1CFQR2pwsvEG+nlLR377UnCZFm+ZBcbJ3EjD2JqHdJ/3uF68NsAfYCp4dcrlR36aJk/6ZItk1dI29JA9huldfJXn4jM1MkBvPBozkt4YF84dl6dXeLxyhSecb3z91WBxP7+7tZIkJ2UcBd9K7AlLtUW8zZHzrnMM5xFhfkwIDAQABAoIBAHxGl0ckyjR2G5vyCY2WtD7upSJUNTIL+enOmfShGcHZWrkWt6c679wvO2/CYEbc0u9HN0g+dR8Qd03N8kfx2hrQTbd01Gn9zWFuHLqeCQN7oWImbd9A3dw1hj+uPT+lJ5/diuRDfc3XrQgNWRVzA465WMfikz05n1w967qDesL6/alBkKeymqwaNN3GzLmamcymjVw5GU83wph8Xw6hTKANLOot6mioYvrdOu2RW4VMnf0VtTMGrm0gqWpweJHsKlDbw2uKyGf7K0PlrSulkpp/gnDtXZO3vkBOKyU5tJunFw0RXYbjSSYT+NRLq55TGWUOhQ9175JOaFowZ/Z6seECgY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IhvcNAQEBBQADggEPADCCAQoCggEBAJa8I0H+Z63xJuSqavz+ILVXLAOzrjdtyjcHHEHyQxem39Y87Dggl5GpJ0uvqk7G0WddxPRUVxHiJz/lUR27CUGUFXiE58nsWppY3SDQLd6Z6vGoXARVeduU/kHn3qxnErbvCZCWLjghq9hYlYomu17+S/jycN0vhzGbSGHSwnZbMfHBtQhUEdqcLLxBvp5S0d++1JwmRZvmQXGydxIw9iah3Sf97hevDbAH2AqeHXK5Ud+miZP+mSLZNXSNvSQPYbpXXyV5+IzNTJAbzwaM5LeGBfOHZenV3i8coUnnG98/dVgcT+/u7WSJCdlHAXfSuwJS7VFvM2R865zDOcRYX5MCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAjgs8xvh6nQ7zxzwmgspk/GQfmAe9DXLiQa2Q++DraHeORq8NkU/qrIzZflOlF0oFVU7MKbOM779uLYZUex77ozyMQmjtOJecfwpWtuj3tIscKJ9GvLp96RMwvmUWg/66TuPlyKTskQMbOR6WrS+iXes/CKiUZ3Cve3ttOeS9T2iAIrxZ0g0XdXXWy9PfloLPoQ9vrukrjbOt5zrPBM+oO/yKQlKMNtjrRe7nGVovCc5ikXs3gHPe48O3FG/FCPJ4MRT+YEeuD31EUH2JrYwPtJxWSAqtuPqtPVnUjyRkbqJbxuC3L8phLDm//gjvElVxSR0068agMFfmpWYgYOkTSg==" + ], + "priority": [ + "100" + ] + } + }, + { + "id": "9a2b5f7b-d695-461d-8e8d-98fdfce9a0b9", + "name": "aes-generated", + "providerId": "aes-generated", + "subComponents": {}, + "config": { + "kid": [ + "762e8594-de5a-4a3c-9800-8412e3a56436" + ], + "secret": [ + "nuUJjRHac6ortL6xIyuZcg" + ], + "priority": [ + "100" + ] + } + }, + { + "id": "7142b72c-aa26-45ac-bc63-1bc1f5521ede", + "name": "hmac-generated", + "providerId": "hmac-generated", + "subComponents": {}, + "config": { + "kid": [ + "ee9e7845-3c2c-4544-8208-f008cad520e3" + ], + "secret": [ + "Td0cVOTqjezdfJXKDhRMsYQtzs4uHnvwSlXzb3oPgYO2wkwE05tq2lPzj1W8xFHD2U5PNkvKySc3327DXx1Z3Q" + ], + "priority": [ + "100" + ], + "algorithm": [ + "HS256" + ] + } + } + ] + }, + "internationalizationEnabled": false, + "supportedLocales": [], + "authenticationFlows": [ + { + "id": "76ff6d7b-df83-4bf6-8a25-85727c52f3f7", + "alias": "Account verification options", + "description": "Method with which to verity the existing account", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-email-verification", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Verify Existing Account by Re-authentication", + "userSetupAllowed": false + } + ] + }, + { + "id": "1a23d038-0a5a-48e4-b69a-864d1f14d525", + "alias": "Authentication Options", + "description": "Authentication options.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "basic-auth", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "basic-auth-otp", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-spnego", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "25892fdf-5c96-433b-8bc7-27fb207cf4ca", + "alias": "Browser - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "367a134b-c18a-4133-b8a2-32582e57eb69", + "alias": "Direct Grant - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "direct-grant-validate-otp", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "e71b6ae8-ebe3-4366-9807-222a9b769592", + "alias": "First broker login - Conditional OTP", + "description": "Flow to determine if the OTP is required for the authentication", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "2a8133f1-a52f-4fb9-91d3-4e17d2e56bcd", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Account verification options", + "userSetupAllowed": false + } + ] + }, + { + "id": "beb7c2ed-201a-4365-aa78-763f95ffb4ac", + "alias": "Reset - Conditional OTP", + "description": "Flow to determine if the OTP should be reset or not. Set to REQUIRED to force.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-otp", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "1949637d-afa6-4cbc-b83b-50a67a4c6e4c", + "alias": "User creation or linking", + "description": "Flow for the existing/non-existing user alternatives", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticatorConfig": "create unique user config", + "authenticator": "idp-create-user-if-unique", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Handle Existing Account", + "userSetupAllowed": false + } + ] + }, + { + "id": "c14ec04f-c452-4f5e-b06f-3fdddd9b3e9e", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "First broker login - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "c93d3487-6746-4b3a-a3b4-1588a0cd70b5", + "alias": "browser", + "description": "browser based authentication", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-cookie", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-spnego", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "identity-provider-redirector", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 25, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": true, + "flowAlias": "forms", + "userSetupAllowed": false + } + ] + }, + { + "id": "87f5b5a4-fcc6-4885-b3ca-f0f56dec0ba1", + "alias": "clients", + "description": "Base authentication for clients", + "providerId": "client-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "client-secret", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-jwt", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-secret-jwt", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "client-x509", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 40, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "6e7c517b-4f08-4184-baa5-1c98ca8cba20", + "alias": "direct grant", + "description": "OpenID Connect Resource Owner Grant", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "direct-grant-validate-username", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "direct-grant-validate-password", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 30, + "autheticatorFlow": true, + "flowAlias": "Direct Grant - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "b6bfb053-2349-48d0-a8ab-d57a526bb9d4", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "cb3c8741-eb69-447a-b9ee-8669132a7ec4", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "User creation or linking", + "userSetupAllowed": false + } + ] + }, + { + "id": "c9ad3f4a-74ff-41ac-92c1-cfd2c7cc6ba8", + "alias": "forms", + "description": "Username, password, otp and other auth forms.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-username-password-form", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Browser - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "1609438c-44ce-4734-a65c-abf9bd7abcfa", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": true, + "flowAlias": "Authentication Options", + "userSetupAllowed": false + } + ] + }, + { + "id": "11087ea1-30ca-465e-b627-99c88114e952", + "alias": "registration", + "description": "registration flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-page-form", + "authenticatorFlow": true, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": true, + "flowAlias": "registration form", + "userSetupAllowed": false + } + ] + }, + { + "id": "f8867dcf-7f6d-4c4c-bd74-2163f8e5d221", + "alias": "registration form", + "description": "registration form", + "providerId": "form-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-user-creation", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-profile-action", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 40, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-password-action", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 50, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "registration-recaptcha-action", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 60, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "da4b7ff7-cf28-4aaa-be07-4916e2209a25", + "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", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-credential-email", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "reset-password", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 40, + "autheticatorFlow": true, + "flowAlias": "Reset - Conditional OTP", + "userSetupAllowed": false + } + ] + }, + { + "id": "c4e804bb-8627-4027-a1db-cf2f9f51cef9", + "alias": "saml ecp", + "description": "SAML ECP Profile Authentication Flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "http-basic-authenticator", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + } + ], + "authenticatorConfig": [ + { + "id": "f710953f-1e31-4ae2-af33-ffcf4933a29e", + "alias": "create unique user config", + "config": { + "require.password.update.after.registration": "false" + } + }, + { + "id": "9db99439-19de-4e84-893f-a8e5a7134ffd", + "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": {} + }, + { + "alias": "delete_account", + "name": "Delete Account", + "providerId": "delete_account", + "enabled": false, + "defaultAction": false, + "priority": 60, + "config": {} + }, + { + "alias": "update_user_locale", + "name": "Update User Locale", + "providerId": "update_user_locale", + "enabled": true, + "defaultAction": false, + "priority": 1000, + "config": {} + } + ], + "browserFlow": "browser", + "registrationFlow": "registration", + "directGrantFlow": "direct grant", + "resetCredentialsFlow": "reset credentials", + "clientAuthenticationFlow": "clients", + "dockerAuthenticationFlow": "docker auth", + "attributes": { + "cibaBackchannelTokenDeliveryMode": "poll", + "cibaExpiresIn": "120", + "cibaAuthRequestedUserHint": "login_hint", + "oauth2DeviceCodeLifespan": "600", + "oauth2DevicePollingInterval": "5", + "parRequestUriLifespan": "60", + "cibaInterval": "5" + }, + "keycloakVersion": "18.0.2", + "userManagedAccessAllowed": false, + "clientProfiles": { + "profiles": [] + }, + "clientPolicies": { + "policies": [] + } +}, +{ + "id": "b6d3da4b-29b5-4009-bb00-b33b0a91a20d", + "realm": "master", + "displayName": "Keycloak", + "displayNameHtml": "