diff --git a/.env.test b/.env.test index cca44ff..7c331ed 100644 --- a/.env.test +++ b/.env.test @@ -44,3 +44,6 @@ TEMPORAL_API_TOKEN= DISTANT_API_URL='' DISTANT_ALERT_API_LOGIN='' DISTANT_ALERT_API_PASSWORD='' + +KEYCLOAK_USERNAME=admin +KEYCLOAK_PASSWORD=admin_keycloak \ No newline at end of file diff --git a/README.md b/README.md index abfa4c4..5c9ad33 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,14 @@ docker logs engine ## 📂 Data Usage +### Users Keycloak + +| Username | Organization_id | Password | +|----------|-----------------|----------| +| test77 | 2 | test | +| test07 | 3 | test | + + ### Add more images to Reolink Dev Create a directory `data/images` before starting the environment and put your images inside. diff --git a/containers/keycloak/realm/realm_pyronear.json b/containers/keycloak/realm/realm_pyronear.json new file mode 100644 index 0000000..f05ff13 --- /dev/null +++ b/containers/keycloak/realm/realm_pyronear.json @@ -0,0 +1,2794 @@ +{ + "id": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "realm": "pyronear", + "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, + "maxTemporaryLockouts": 0, + "bruteForceStrategy": "MULTIPLE", + "maxFailureWaitSeconds": 900, + "minimumQuickLoginWaitSeconds": 60, + "waitIncrementSeconds": 60, + "quickLoginCheckMilliSeconds": 1000, + "maxDeltaTimeSeconds": 43200, + "failureFactor": 30, + "roles": { + "realm": [ + { + "id": "c07219b0-6974-41fa-9bf9-aeabecb48b55", + "name": "F001_LIVESTREAMING", + "description": "", + "composite": false, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "attributes": {} + }, + { + "id": "2d7d25c0-ea1a-4d4f-8857-d63959096d23", + "name": "F002_OCCLUSION_MASK", + "description": "", + "composite": false, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "attributes": {} + }, + { + "id": "15e31201-bd40-4527-bca0-422e0c051623", + "name": "offline_access", + "description": "${role_offline-access}", + "composite": false, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "attributes": {} + }, + { + "id": "0f490bc4-4481-4db0-92fe-0eb70ccd1f36", + "name": "default-roles-pyronear", + "description": "${role_default-roles}", + "composite": true, + "composites": { + "realm": [ + "offline_access", + "uma_authorization" + ], + "client": { + "account": [ + "manage-account", + "view-profile" + ] + } + }, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "attributes": {} + }, + { + "id": "c0b3e5f7-a7d8-4248-87c3-630b7e09a708", + "name": "uma_authorization", + "description": "${role_uma_authorization}", + "composite": false, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c", + "attributes": {} + } + ], + "client": { + "realm-management": [ + { + "id": "063b30b0-7fe9-49c4-9b4c-5ca3ddcebde0", + "name": "query-groups", + "description": "${role_query-groups}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "8215f41f-e3de-4ef6-8d8e-e59d74fa6301", + "name": "realm-admin", + "description": "${role_realm-admin}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-groups", + "manage-events", + "query-users", + "view-clients", + "view-events", + "view-identity-providers", + "view-users", + "query-realms", + "view-realm", + "manage-authorization", + "manage-users", + "query-clients", + "manage-clients", + "manage-identity-providers", + "manage-realm", + "impersonation", + "create-client", + "view-authorization" + ] + } + }, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "78f3a898-11f0-4076-8116-b810a21cefa9", + "name": "manage-events", + "description": "${role_manage-events}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "6c033be6-7b99-4ebb-8714-4ad63a197a99", + "name": "query-users", + "description": "${role_query-users}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "6c7771b2-b24b-4cb1-b61c-bb0610987b15", + "name": "view-clients", + "description": "${role_view-clients}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-clients" + ] + } + }, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "58884ada-ad77-42b6-8c9b-96d559a8afd3", + "name": "view-events", + "description": "${role_view-events}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "65116aba-0bbc-4077-a186-8d15b26cfd5e", + "name": "view-identity-providers", + "description": "${role_view-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "4bed2ccd-58e0-4fcf-bed7-6b5fd0cd741e", + "name": "view-users", + "description": "${role_view-users}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-groups", + "query-users" + ] + } + }, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "95e1cda2-a86f-44b0-b52c-a40b7000fdad", + "name": "query-realms", + "description": "${role_query-realms}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "5a829df9-0e6c-48eb-b218-485a527b5c89", + "name": "view-realm", + "description": "${role_view-realm}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "5d59c5fb-dab0-4514-b763-8eb7632780e2", + "name": "manage-authorization", + "description": "${role_manage-authorization}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "fa4c117f-e129-433d-a358-fc25a89559ef", + "name": "manage-users", + "description": "${role_manage-users}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "1df307dc-eb6f-4877-bcb2-6335b90a200a", + "name": "query-clients", + "description": "${role_query-clients}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "f05ef5e2-dd56-4053-8977-2e407fe4addf", + "name": "manage-clients", + "description": "${role_manage-clients}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "613293b1-fbe9-4917-aa39-e80535d09838", + "name": "manage-identity-providers", + "description": "${role_manage-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "4fd533ae-3600-46f7-ac29-642404fea15d", + "name": "manage-realm", + "description": "${role_manage-realm}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "37e0bd07-f7ec-4999-a287-686449cc1d99", + "name": "impersonation", + "description": "${role_impersonation}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "1efc3553-1919-4a44-a93f-7ab438b48041", + "name": "create-client", + "description": "${role_create-client}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + }, + { + "id": "fa274186-f43f-4558-aa6b-9b668b1af1b8", + "name": "view-authorization", + "description": "${role_view-authorization}", + "composite": false, + "clientRole": true, + "containerId": "60c04426-af40-444a-a4b7-cdf44708f820", + "attributes": {} + } + ], + "security-admin-console": [], + "admin-cli": [], + "account-console": [], + "broker": [ + { + "id": "6ad889b1-a1d9-42c5-96c1-f74cc4a044e2", + "name": "read-token", + "description": "${role_read-token}", + "composite": false, + "clientRole": true, + "containerId": "296d8465-1635-4eab-a02f-025b7706345f", + "attributes": {} + } + ], + "account": [ + { + "id": "15f4f030-742d-4ecc-adc5-ac9c13fe61d1", + "name": "delete-account", + "description": "${role_delete-account}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "8d52b77d-7336-489c-a1df-d0f88b6fb71d", + "name": "manage-account-links", + "description": "${role_manage-account-links}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "ad5134f1-5343-4006-b062-acf7006845cf", + "name": "view-consent", + "description": "${role_view-consent}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "4dbd82c2-cdf3-4636-a52e-37dd9bd7d2ed", + "name": "view-groups", + "description": "${role_view-groups}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "ff95f710-2ae5-41bd-b3e8-5f1ae2db4988", + "name": "manage-account", + "description": "${role_manage-account}", + "composite": true, + "composites": { + "client": { + "account": [ + "manage-account-links" + ] + } + }, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "eea84c21-bcd1-44b7-975e-11e47586999f", + "name": "view-profile", + "description": "${role_view-profile}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "4b158561-d03c-4c8c-9521-5ea1fde17b14", + "name": "manage-consent", + "description": "${role_manage-consent}", + "composite": true, + "composites": { + "client": { + "account": [ + "view-consent" + ] + } + }, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + }, + { + "id": "149c58da-c5ad-46b9-8b17-dc19039e218b", + "name": "view-applications", + "description": "${role_view-applications}", + "composite": false, + "clientRole": true, + "containerId": "de317213-04c0-4230-988b-10fa61644746", + "attributes": {} + } + ], + "new-pyro-platform": [] + } + }, + "groups": [ + { + "id": "ce064fb2-4b2b-49b3-9b6f-568317ac347a", + "name": "admin", + "description": "", + "path": "/admin", + "subGroups": [], + "attributes": {}, + "realmRoles": [ + "F001_LIVESTREAMING", + "F002_OCCLUSION_MASK" + ], + "clientRoles": {} + }, + { + "id": "c792e75b-3c07-423c-899b-ac9c9108ad7f", + "name": "agent", + "description": "", + "path": "/agent", + "subGroups": [], + "attributes": {}, + "realmRoles": [ + "F001_LIVESTREAMING", + "F002_OCCLUSION_MASK" + ], + "clientRoles": {} + }, + { + "id": "147bb0f0-7dc0-461c-aafd-2e1eb6778e9b", + "name": "user", + "description": "", + "path": "/user", + "subGroups": [], + "attributes": {}, + "realmRoles": [ ], + "clientRoles": {} + } + ], + "defaultRole": { + "id": "0f490bc4-4481-4db0-92fe-0eb70ccd1f36", + "name": "default-roles-pyronear", + "description": "${role_default-roles}", + "composite": true, + "clientRole": false, + "containerId": "8b67118b-e1a4-4455-9e6f-dca138172d4c" + }, + "requiredCredentials": [ + "password" + ], + "otpPolicyType": "totp", + "otpPolicyAlgorithm": "HmacSHA1", + "otpPolicyInitialCounter": 0, + "otpPolicyDigits": 6, + "otpPolicyLookAheadWindow": 1, + "otpPolicyPeriod": 30, + "otpPolicyCodeReusable": false, + "otpSupportedApplications": [ + "totpAppFreeOTPName", + "totpAppGoogleName", + "totpAppMicrosoftAuthenticatorName" + ], + "localizationTexts": {}, + "webAuthnPolicyRpEntityName": "keycloak", + "webAuthnPolicySignatureAlgorithms": [ + "ES256", + "RS256" + ], + "webAuthnPolicyRpId": "", + "webAuthnPolicyAttestationConveyancePreference": "not specified", + "webAuthnPolicyAuthenticatorAttachment": "not specified", + "webAuthnPolicyRequireResidentKey": "not specified", + "webAuthnPolicyUserVerificationRequirement": "not specified", + "webAuthnPolicyCreateTimeout": 0, + "webAuthnPolicyAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyAcceptableAaguids": [], + "webAuthnPolicyExtraOrigins": [], + "webAuthnPolicyPasswordlessRpEntityName": "keycloak", + "webAuthnPolicyPasswordlessSignatureAlgorithms": [ + "ES256", + "RS256" + ], + "webAuthnPolicyPasswordlessRpId": "", + "webAuthnPolicyPasswordlessAttestationConveyancePreference": "not specified", + "webAuthnPolicyPasswordlessAuthenticatorAttachment": "not specified", + "webAuthnPolicyPasswordlessRequireResidentKey": "Yes", + "webAuthnPolicyPasswordlessUserVerificationRequirement": "required", + "webAuthnPolicyPasswordlessCreateTimeout": 0, + "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false, + "webAuthnPolicyPasswordlessAcceptableAaguids": [], + "webAuthnPolicyPasswordlessExtraOrigins": [], + "loginTheme": "pyro-theme", + "users": [ + { + "id": "e813b152-bb4d-4b1d-8f9b-ea62554a6abe", + "username": "test07", + "emailVerified": false, + "attributes": { + "pyro-organization": [ + "3" + ] + }, + "enabled": true, + "createdTimestamp": 1770670536418, + "totp": false, + "credentials": [ + { + "id": "9850bfb7-b3af-4b48-9195-7d8c841c5db7", + "type": "password", + "userLabel": "My password", + "createdDate": 1770670550272, + "secretData": "{\"value\":\"qgKAWajZCcAdXmBgB/uvONxiRZxdQUNfJ632m4yPQv4=\",\"salt\":\"mhxBeQTCDa8cCY8RoiWIDQ==\",\"additionalParameters\":{}}", + "credentialData": "{\"hashIterations\":5,\"algorithm\":\"argon2\",\"additionalParameters\":{\"hashLength\":[\"32\"],\"memory\":[\"7168\"],\"type\":[\"id\"],\"version\":[\"1.3\"],\"parallelism\":[\"1\"]}}" + } + ], + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-pyronear" + ], + "notBefore": 0, + "groups": [ + "/agent" + ] + }, + { + "id": "aa6ec0f1-bbbb-426e-b4fb-414b1c114fd1", + "username": "test77", + "emailVerified": false, + "attributes": { + "pyro-organization": [ + "2" + ] + }, + "enabled": true, + "createdTimestamp": 1770670490622, + "totp": false, + "credentials": [ + { + "id": "c38610a8-263b-4e1d-9c33-b41106c2e50e", + "type": "password", + "userLabel": "My password", + "createdDate": 1770670504358, + "secretData": "{\"value\":\"4LS4jQCdLR2VjhL//pnl01dquoWSqnkNUMgP83nOnH4=\",\"salt\":\"5IHfNptynEI2vNNCajHrKw==\",\"additionalParameters\":{}}", + "credentialData": "{\"hashIterations\":5,\"algorithm\":\"argon2\",\"additionalParameters\":{\"hashLength\":[\"32\"],\"memory\":[\"7168\"],\"type\":[\"id\"],\"version\":[\"1.3\"],\"parallelism\":[\"1\"]}}" + } + ], + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "default-roles-pyronear" + ], + "notBefore": 0, + "groups": [ + "/agent" + ] + } + ], + "scopeMappings": [ + { + "clientScope": "offline_access", + "roles": [ + "offline_access" + ] + } + ], + "clientScopeMappings": { + "account": [ + { + "client": "account-console", + "roles": [ + "manage-account", + "view-groups" + ] + } + ] + }, + "clients": [ + { + "id": "de317213-04c0-4230-988b-10fa61644746", + "clientId": "account", + "name": "${client_account}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/pyronear/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/pyronear/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "realm_client": "false", + "post.logout.redirect.uris": "+" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "904b1ef5-9ee8-40e1-89dc-c6d3f083aa46", + "clientId": "account-console", + "name": "${client_account-console}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/pyronear/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/realms/pyronear/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "realm_client": "false", + "post.logout.redirect.uris": "+", + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "fc5c5c13-8620-4b7e-938c-432930182e8b", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + } + ], + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "37762da2-a6b8-450c-aaf8-59e1fdb754e3", + "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": { + "realm_client": "false", + "client.use.lightweight.access.token.enabled": "true", + "post.logout.redirect.uris": "+" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "296d8465-1635-4eab-a02f-025b7706345f", + "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": { + "realm_client": "true", + "post.logout.redirect.uris": "+" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "5861540f-712d-4abf-9e43-b940c586586e", + "clientId": "new-pyro-platform", + "name": "new-pyro-platform", + "description": "", + "rootUrl": "http://localhost:5173", + "adminUrl": "http://localhost:5173", + "baseUrl": "http://localhost:5173/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "", + "http://localhost:5173/*" + ], + "webOrigins": [ + "http://localhost:5173" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": true, + "protocol": "openid-connect", + "attributes": { + "realm_client": "false", + "logout.confirmation.enabled": "false", + "oidc.ciba.grant.enabled": "false", + "backchannel.logout.session.required": "true", + "standard.token.exchange.enabled": "false", + "post.logout.redirect.uris": "+", + "frontchannel.logout.session.required": "true", + "oauth2.device.authorization.grant.enabled": "false", + "display.on.consent.screen": "false", + "backchannel.logout.revoke.offline.tokens": "false", + "dpop.bound.access.tokens": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "60c04426-af40-444a-a4b7-cdf44708f820", + "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": { + "realm_client": "true", + "post.logout.redirect.uris": "+" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "acr", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + }, + { + "id": "8dda38c5-5fe2-4d7c-8dc9-57f9c4c29130", + "clientId": "security-admin-console", + "name": "${client_security-admin-console}", + "rootUrl": "${authAdminUrl}", + "baseUrl": "/admin/pyronear/console/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "redirectUris": [ + "/admin/pyronear/console/*" + ], + "webOrigins": [ + "+" + ], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "realm_client": "false", + "client.use.lightweight.access.token.enabled": "true", + "post.logout.redirect.uris": "+", + "pkce.code.challenge.method": "S256" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": 0, + "protocolMappers": [ + { + "id": "58257651-cc20-442a-b4f6-e50d5e98024b", + "name": "locale", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "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", + "profile", + "roles", + "basic", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "organization", + "microprofile-jwt" + ] + } + ], + "clientScopes": [ + { + "id": "f7e1d8b8-5249-4716-bcce-cebc6517cc61", + "name": "address", + "description": "OpenID Connect built-in scope: address", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "consent.screen.text": "${addressScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "95395e03-7364-4aae-a38c-e707ee3490d9", + "name": "address", + "protocol": "openid-connect", + "protocolMapper": "oidc-address-mapper", + "consentRequired": false, + "config": { + "user.attribute.formatted": "formatted", + "user.attribute.country": "country", + "introspection.token.claim": "true", + "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": "fb92e6dc-3669-4670-b057-2b6f55aeb3e5", + "name": "service_account", + "description": "Specific scope for a client enabled for service accounts", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "f0e4c524-6e64-4851-b296-2a50ef5de0b0", + "name": "Client ID", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "client_id", + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "client_id", + "jsonType.label": "String" + } + }, + { + "id": "8adb30b8-2b7d-4b7f-813c-422b68fb5fd3", + "name": "Client Host", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientHost", + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientHost", + "jsonType.label": "String" + } + }, + { + "id": "bef0069f-fc5a-48f1-8dd8-fb333e5ead5a", + "name": "Client IP Address", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "clientAddress", + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "clientAddress", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "36d6df14-3deb-4741-a5f1-6ca916441fa3", + "name": "profile", + "description": "OpenID Connect built-in scope: profile", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "consent.screen.text": "${profileScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "3a5bd941-3700-459d-a29d-4e7a797f7e6c", + "name": "nickname", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "nickname", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "nickname", + "jsonType.label": "String" + } + }, + { + "id": "fee95d2f-01f3-4511-9d4b-d3c179c63304", + "name": "website", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "website", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "website", + "jsonType.label": "String" + } + }, + { + "id": "66e860be-987f-4b36-84c5-0f9de366b29a", + "name": "updated at", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "updatedAt", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "updated_at", + "jsonType.label": "long" + } + }, + { + "id": "d34f6212-0bf9-4955-b325-1d181deb56a8", + "name": "locale", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "locale", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "locale", + "jsonType.label": "String" + } + }, + { + "id": "bc58bbc4-f13a-4052-aacb-2f63b24f00bd", + "name": "zoneinfo", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "zoneinfo", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "zoneinfo", + "jsonType.label": "String" + } + }, + { + "id": "ff4658d5-fb03-4d55-811a-7e006b677328", + "name": "middle name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "middleName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "middle_name", + "jsonType.label": "String" + } + }, + { + "id": "c7a959d5-05ea-4ba1-bd2e-dfdc36461570", + "name": "gender", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "gender", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "gender", + "jsonType.label": "String" + } + }, + { + "id": "ab023ac5-19af-4bd1-b589-6ee45c4de5f6", + "name": "given name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "firstName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "given_name", + "jsonType.label": "String" + } + }, + { + "id": "c28a62f9-6d28-4d83-8893-191dd4bfbb08", + "name": "family name", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "lastName", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "family_name", + "jsonType.label": "String" + } + }, + { + "id": "38efd411-385a-4174-a3cb-69f4a698db75", + "name": "picture", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "picture", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "picture", + "jsonType.label": "String" + } + }, + { + "id": "d2cb26de-75c6-4d27-ae03-6be29eb6d7b7", + "name": "profile", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "profile", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "profile", + "jsonType.label": "String" + } + }, + { + "id": "902674db-e0a6-4d2d-9d9c-f5cb9d72436d", + "name": "full name", + "protocol": "openid-connect", + "protocolMapper": "oidc-full-name-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "introspection.token.claim": "true", + "access.token.claim": "true", + "userinfo.token.claim": "true" + } + }, + { + "id": "55bc1257-9835-4159-9364-9302817b0d37", + "name": "username", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "username", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "preferred_username", + "jsonType.label": "String" + } + }, + { + "id": "f743f671-f2df-473b-addc-151f7ffd7171", + "name": "birthdate", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "birthdate", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "birthdate", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "7510f555-399e-4338-b44e-bd94a048244c", + "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", + "consent.screen.text": "", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "89f6a2c1-1fd0-4665-bc7b-63e94d781ff1", + "name": "allowed web origins", + "protocol": "openid-connect", + "protocolMapper": "oidc-allowed-origins-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "8b4f1e57-bbc6-485c-acb9-c26ecbc39766", + "name": "organization", + "description": "Additional claims about the organization a subject belongs to", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "consent.screen.text": "${organizationScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "7c96719e-64f9-4b3a-adf2-ddf4f881b1ba", + "name": "organization", + "protocol": "openid-connect", + "protocolMapper": "oidc-organization-membership-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "multivalued": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "organization", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "cb6ec405-04a2-4d2c-b056-a617c9d18abe", + "name": "role_list", + "description": "SAML role list", + "protocol": "saml", + "attributes": { + "consent.screen.text": "${samlRoleListScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "ae3bb5fd-73d4-42fc-ac3f-0ec4fd8e911c", + "name": "role list", + "protocol": "saml", + "protocolMapper": "saml-role-list-mapper", + "consentRequired": false, + "config": { + "single": "false", + "attribute.nameformat": "Basic", + "attribute.name": "Role" + } + } + ] + }, + { + "id": "f13327e7-4ae2-4d73-a554-fef9449338ab", + "name": "roles", + "description": "OpenID Connect scope for add user roles to the access token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "consent.screen.text": "${rolesScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "5f33f9ed-3d21-4787-8ef4-95826e8ae6fb", + "name": "realm roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-realm-role-mapper", + "consentRequired": false, + "config": { + "user.attribute": "foo", + "introspection.token.claim": "true", + "access.token.claim": "true", + "claim.name": "realm_access.roles", + "jsonType.label": "String", + "multivalued": "true" + } + }, + { + "id": "2a2c52b5-3027-4187-a266-ad7aa894f113", + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "user.attribute": "foo", + "introspection.token.claim": "true", + "access.token.claim": "true", + "claim.name": "resource_access.${client_id}.roles", + "jsonType.label": "String", + "multivalued": "true" + } + }, + { + "id": "3acc3a97-ecb6-4e0f-afc6-0e95caa694c0", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "c1e5c7dd-c476-45e0-8297-a075ce2d9bdd", + "name": "basic", + "description": "OpenID Connect scope for add all basic claims to the token", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "false", + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "e356b4d8-5c3c-425e-9664-aceff0513abd", + "name": "auth_time", + "protocol": "openid-connect", + "protocolMapper": "oidc-usersessionmodel-note-mapper", + "consentRequired": false, + "config": { + "user.session.note": "AUTH_TIME", + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "auth_time", + "jsonType.label": "long" + } + }, + { + "id": "60a5e9aa-5f9f-4329-b54a-e5adef5ceb40", + "name": "sub", + "protocol": "openid-connect", + "protocolMapper": "oidc-sub-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "access.token.claim": "true" + } + } + ] + }, + { + "id": "938c7905-bb03-4920-9b04-38c7ba8bc72c", + "name": "email", + "description": "OpenID Connect built-in scope: email", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "consent.screen.text": "${emailScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "4181b6e5-738e-4552-8030-abaf9a0eb7a1", + "name": "email verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-property-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "emailVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email_verified", + "jsonType.label": "boolean" + } + }, + { + "id": "13a3baba-0e35-4834-ba5b-965105805cb9", + "name": "email", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "email", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "email", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "1829613a-edcd-4be6-b650-762268e9a24e", + "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": "cec35987-d39f-4882-a8e5-4b6cd02e7e9b", + "name": "pyro-organization", + "description": "", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "display.on.consent.screen": "true", + "gui.order": "", + "consent.screen.text": "", + "include.in.openid.provider.metadata": "true" + }, + "protocolMappers": [ + { + "id": "e6c66191-080e-4e47-9e21-9a0821d29582", + "name": "organization_mapper", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "aggregate.attrs": "false", + "introspection.token.claim": "true", + "multivalued": "false", + "userinfo.token.claim": "true", + "user.attribute": "pyro-organization", + "id.token.claim": "true", + "lightweight.claim": "true", + "access.token.claim": "true", + "claim.name": "organization", + "jsonType.label": "int" + } + } + ] + }, + { + "id": "5ca2fccc-d77a-49ac-8a94-c79f7bd514f2", + "name": "phone", + "description": "OpenID Connect built-in scope: phone", + "protocol": "openid-connect", + "attributes": { + "include.in.token.scope": "true", + "consent.screen.text": "${phoneScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "7a1cccb6-bedd-4b6d-89fa-9db6c04f332a", + "name": "phone number", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "phoneNumber", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "phone_number", + "jsonType.label": "String" + } + }, + { + "id": "19352060-f4af-4ea6-b346-b253aa4f6df8", + "name": "phone number verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "phoneNumberVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "phone_number_verified", + "jsonType.label": "boolean" + } + } + ] + }, + { + "id": "10735c52-aaf4-464e-a8d0-c5edb8ca2c4c", + "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": "c50a8aa9-32b0-4ced-98ff-b77cafc62797", + "name": "groups", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-realm-role-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "multivalued": "true", + "userinfo.token.claim": "true", + "user.attribute": "foo", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "groups", + "jsonType.label": "String" + } + }, + { + "id": "662e8029-68eb-4714-8ec0-612637fba8ff", + "name": "upn", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "introspection.token.claim": "true", + "userinfo.token.claim": "true", + "user.attribute": "username", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "upn", + "jsonType.label": "String" + } + } + ] + }, + { + "id": "9ce158a3-9b29-4109-b087-04b50711858c", + "name": "saml_organization", + "description": "Organization Membership", + "protocol": "saml", + "attributes": { + "display.on.consent.screen": "false" + }, + "protocolMappers": [ + { + "id": "6fd3426d-b4ba-4d05-aa50-652b4ddd265e", + "name": "organization", + "protocol": "saml", + "protocolMapper": "saml-organization-membership-mapper", + "consentRequired": false, + "config": {} + } + ] + }, + { + "id": "1ed3110c-0a75-4cc1-8715-331f0cb53b6f", + "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": "22d9f270-e6fa-4288-ad99-17e4d9d201a2", + "name": "acr loa level", + "protocol": "openid-connect", + "protocolMapper": "oidc-acr-mapper", + "consentRequired": false, + "config": { + "id.token.claim": "true", + "introspection.token.claim": "true", + "access.token.claim": "true", + "userinfo.token.claim": "true" + } + } + ] + } + ], + "defaultDefaultClientScopes": [ + "role_list", + "saml_organization", + "profile", + "email", + "roles", + "web-origins", + "acr", + "basic", + "pyro-organization" + ], + "defaultOptionalClientScopes": [ + "offline_access", + "address", + "phone", + "microprofile-jwt", + "organization" + ], + "browserSecurityHeaders": { + "contentSecurityPolicyReportOnly": "", + "xContentTypeOptions": "nosniff", + "referrerPolicy": "no-referrer", + "xRobotsTag": "none", + "xFrameOptions": "SAMEORIGIN", + "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, + "identityProviders": [], + "identityProviderMappers": [], + "components": { + "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ + { + "id": "29a6a1b5-2f6a-495d-9f13-cbc4ad06846e", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "a7c45148-aa1b-4b46-abd8-3772b7fabf31", + "name": "Allowed Registration Web Origins", + "providerId": "registration-web-origins", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "425aaa42-27f0-464c-82e7-aad3ef0e53e4", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "saml-user-property-mapper", + "oidc-sha256-pairwise-sub-mapper", + "oidc-usermodel-property-mapper", + "saml-role-list-mapper", + "oidc-address-mapper", + "saml-user-attribute-mapper", + "oidc-full-name-mapper", + "oidc-usermodel-attribute-mapper" + ] + } + }, + { + "id": "68e7b681-819b-4479-907e-f8fa66d8fabe", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "cc97615a-b75c-448a-9351-2f3b5a73562b", + "name": "Trusted Hosts", + "providerId": "trusted-hosts", + "subType": "anonymous", + "subComponents": {}, + "config": { + "host-sending-registration-request-must-match": [ + "true" + ], + "client-uris-must-match": [ + "true" + ] + } + }, + { + "id": "1546dda0-22e0-4fe1-ad3b-d593eb18f098", + "name": "Allowed Registration Web Origins", + "providerId": "registration-web-origins", + "subType": "authenticated", + "subComponents": {}, + "config": {} + }, + { + "id": "b6b1f517-c59e-4714-ad14-48bed560a385", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-sha256-pairwise-sub-mapper", + "oidc-address-mapper", + "saml-user-attribute-mapper", + "oidc-usermodel-attribute-mapper", + "oidc-usermodel-property-mapper", + "oidc-full-name-mapper", + "saml-user-property-mapper", + "saml-role-list-mapper" + ] + } + }, + { + "id": "081440a3-a166-4831-b89f-53d6c1c9a017", + "name": "Max Clients Limit", + "providerId": "max-clients", + "subType": "anonymous", + "subComponents": {}, + "config": { + "max-clients": [ + "200" + ] + } + }, + { + "id": "6c325d37-5d46-42d6-a32e-f3f6d7af270a", + "name": "Consent Required", + "providerId": "consent-required", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "dad89442-6113-45ac-b6b7-e0c0853e7836", + "name": "Full Scope Disabled", + "providerId": "scope", + "subType": "anonymous", + "subComponents": {}, + "config": {} + } + ], + "org.keycloak.userprofile.UserProfileProvider": [ + { + "id": "03c71535-4421-474c-a514-60a6528b500a", + "providerId": "declarative-user-profile", + "subComponents": {}, + "config": { + "kc.user.profile.config": [ + "{\"attributes\":[{\"name\":\"username\",\"displayName\":\"${username}\",\"validations\":{\"length\":{\"min\":3,\"max\":255},\"username-prohibited-characters\":{},\"up-username-not-idn-homograph\":{}},\"permissions\":{\"view\":[\"admin\",\"user\"],\"edit\":[\"admin\",\"user\"]},\"multivalued\":false},{\"name\":\"email\",\"displayName\":\"${email}\",\"validations\":{\"email\":{},\"length\":{\"max\":255}},\"required\":{\"roles\":[\"user\"]},\"permissions\":{\"view\":[\"admin\",\"user\"],\"edit\":[\"admin\",\"user\"]},\"multivalued\":false},{\"name\":\"firstName\",\"displayName\":\"${firstName}\",\"validations\":{\"length\":{\"max\":255},\"person-name-prohibited-characters\":{}},\"required\":{\"roles\":[\"user\"]},\"permissions\":{\"view\":[\"admin\",\"user\"],\"edit\":[\"admin\",\"user\"]},\"multivalued\":false},{\"name\":\"lastName\",\"displayName\":\"${lastName}\",\"validations\":{\"length\":{\"max\":255},\"person-name-prohibited-characters\":{}},\"required\":{\"roles\":[\"user\"]},\"permissions\":{\"view\":[\"admin\",\"user\"],\"edit\":[\"admin\",\"user\"]},\"multivalued\":false},{\"name\":\"pyro-organization\",\"displayName\":\"\",\"validations\":{},\"annotations\":{},\"required\":{\"roles\":[\"user\"]},\"permissions\":{\"view\":[],\"edit\":[\"admin\"]},\"multivalued\":false}],\"groups\":[{\"name\":\"user-metadata\",\"displayHeader\":\"User metadata\",\"displayDescription\":\"Attributes, which refer to user metadata\"}]}" + ] + } + } + ], + "org.keycloak.keys.KeyProvider": [ + { + "id": "8e34a5f1-567b-43f8-a092-d5f290583089", + "name": "rsa-enc-generated", + "providerId": "rsa-enc-generated", + "subComponents": {}, + "config": { + "privateKey": [ + "MIIEogIBAAKCAQEAl8SqHWwcv3rvUkHRNEI/qsKANuJpBWqR9s5kNqmw777mNWJvLzPgDk9xIUOSsPVnZcXSXyNTX7N2Svsgpo5UVqnr4VD/clS8VFCc1iChSY2n9CwLTM+CHlQVezWDNzlKjLVy+Bru5/FXk6OuX8/rKDymovKZQNr39UdbLcHg1JnTQxP3zfffJ5899zBS4Vjl4Y6q6gd0nu745ycJEfi9hiWOKdR/Z/D1n9TqjRfUIT9Hj0YEGp7NypJWk9glEvW0PUXnCw4VEUb53WLbOyYo/eGg6AJ9jjIJ05weJSVH1vdFX0v1P1o7HfinPmmKAn7ttTlOZBiMSbKQa3BBvYK8cQIDAQABAoIBAAaUThzWnhjUKM7W/DPfRI8cpBFJ1598yYiHbwNXPOZPzzJ0qqxDSMAy3abBad95BaGWv1iqsxRJg+Q0c2ubbPjEbTp7cYkdakkSpSuIbTJZAHVB3/JVZppcLwHREpF3NUE/VnuyAALKTO+HrE+kBFl35tajXLumiN+EJExDnoF1ro6CeNZ9XeLWJuypEToGqSMe+IufiAPAvR/ZHqlmXNaMlxJ543o2ajjFvQigzlZY5MD9RtiDSyUAXygT/pxxfpJbwPrtAhxSR1jdDMlk9JSVpG++SgOTcGqDZxJEYbNsbIL4Z37pFcvvbef3EctZJmHSuOOyQKNfKt4QTok+I0kCgYEA1UlVl54a4nyJ1xcaJ+cXjRX/BpYgPCyjQbx+4XWxTg6hcL/U75/lnRkMMlcGMRCKL+G9Mbw72Wp8txiXM3uLZtUyBuO5L9FnD+YpY1yUp93JLFAVp7U6hMhcgAINIPzwKhW7sQlm+5plzrdwfRNfjLDY0I/Hgxg6eI/5b/8DLTUCgYEAtilxcrBtDPDuJ7yqrDL4FcRaFgGFfPk04ntTIT9JmoJoR3zQ4ccZUXIADZbwLwpAxk4CqOvADk7q9ir7knaUhAGI5tdhtI232L4f5pHP9YeW078jDlHwNnwfXsSvgW9JOSGHLYVO5znvy52VJ1n+RXTEAyzsRr4PmAMc8pnvhc0CgYAHCujcnMfeeqZCh+zBLIxGiFdnbEWcNw0c+pBl+XDlVu5Vvr/VOb5nNZCFiQIXVKh7dES/A6wmPbHoidNUS9wKhTelqpdO0OdKSxtKwJ/X+ybNY8eTRhSslcEYKPkuAawcd6M+8USJQkviS4RXXPBmwOAn4td/qKklmftui0kbkQKBgFlAKPOWeXezvBwAFmdUebTAhZrul+bJex3UasCJb5iieFE+WGGm2ULMZjZCU9/YWDBRHICDMZBRHlIKcUQrkUy0K81ejeKW5RLu5FZl7sxP6JhKt/RWNSmc2wnluE/kpK23PbIR9LzZ6CGNTfz/3NNPCJK9ue5XRPCn5dD/lxmpAoGAOevYa/krIu/G7saZRzImqQcf8I3AE2G8EfQDREwr6HzMCVpwFNkTT9vAvHtAkmupVzhfAuJ6GeFfu5mcYBk1bNrbBiFWGwjMOZ+MjdZZYS2eOOFHv5zxJQ8mI0WeegJVoI5DrluCFrFUfKSMjlrDWWWDPZy2vHzOX7Wa+eAHPi8=" + ], + "certificate": [ + "MIICnzCCAYcCBgGcRC1oXTANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhweXJvbmVhcjAeFw0yNjAyMDkyMDUwNTJaFw0zNjAyMDkyMDUyMzJaMBMxETAPBgNVBAMMCHB5cm9uZWFyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8SqHWwcv3rvUkHRNEI/qsKANuJpBWqR9s5kNqmw777mNWJvLzPgDk9xIUOSsPVnZcXSXyNTX7N2Svsgpo5UVqnr4VD/clS8VFCc1iChSY2n9CwLTM+CHlQVezWDNzlKjLVy+Bru5/FXk6OuX8/rKDymovKZQNr39UdbLcHg1JnTQxP3zfffJ5899zBS4Vjl4Y6q6gd0nu745ycJEfi9hiWOKdR/Z/D1n9TqjRfUIT9Hj0YEGp7NypJWk9glEvW0PUXnCw4VEUb53WLbOyYo/eGg6AJ9jjIJ05weJSVH1vdFX0v1P1o7HfinPmmKAn7ttTlOZBiMSbKQa3BBvYK8cQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA6soTKRI/V1a2kFq9W9BHncKtoYXNUba5o7U/ja454m7BhqBA+lgskYwbZKoENe+t7Mo+HCG4E7HkHmBJ4/WCzHz/hVl4DQ10blYBsZ3eG2AmYf4ehjr9u7AnMF239vCecWqa9c6RS+JnnX2dgsP9yhtlFmFiSDHhcqI8cYQYafWDnsTYxXB+jEolpJONFVG6kDs0QiG96Mc9oEmb2UZ6rK8WvPyxU+xVKb+5lK/qXZxZ4siJTlm3RSgECT2lXnF4+UeQRbVrS836NFJekPfBaIpGtOD8lmDJ4hmqoR9QYPk6kpfNU4YpEF9DYZJZYG7IG0i63EsbSNjF61PH3azg0" + ], + "priority": [ + "100" + ], + "algorithm": [ + "RSA-OAEP" + ] + } + }, + { + "id": "7e85db36-9541-48f6-9433-04308587080c", + "name": "rsa-generated", + "providerId": "rsa-generated", + "subComponents": {}, + "config": { + "privateKey": [ + "MIIEogIBAAKCAQEAiK2464l9jIQmb65gI0sIOvy4XvR6OSIe8CPvJ40Gzys6lxacVV7ua5b3q5hMupT4slIFaKq176rPs9/O2squKvH212iRLIH6dJDCMF5jGPcgEhvZNjwvzmptOYyaRk3s1tts5InRGxznc/qJb49oN7VjLBn7fi4n1xunVyvqtFjVMfClgHKTPCadb1Z/7mixz5BlEMzp1KlpP51NnNG5BYM1KCTPEGG+9kPfTEfiQyVwEL6/sKfxyS+8zfIurYQJ7ndKx97Zjpt11xpZPG7t55PvDbpVaSKiDxFLuXAaKoKJKIP+gHXuZTb5bejlZFPxmTRlCwfiaaoG65cKlp3j0wIDAQABAoIBABHocnmzUTa3hpJhzmk2vAnVMf0IWvlLE12of6h2zbpth2bjc1wA17aowvkB4qUcaWdyirs3iXtbreImBA7eY9VEUHDR28TxSiplYHmA7HVexR4foE//BnktBZ724Vcuf5vOh+UmejZAt8IWRKqlfLoL3fDEfhNUIyvdN4ma5fd3bn5P2GCRmcfUUH/KTLGdX3Eaaxqi79vuPngEKvW5UM3gxAQzAAfddfPa+j9jOP41rvh3Dg7b88eu2GqM4nS+IgwRlfQDAdz9j3P8qLpKO5bDq5ibo2/LMlMYBrcJ+CHylHF0uX5usdwGFS4eDWVdD3g3h9y4vW05BEiLWVQ3gokCgYEAv3wkJ/m10c3/4i5HeaV8fTvpgvJlaNj+9OAaIVbmi6jw4Hm79SUUlNvfCcEq6gIe96JBIde/MlF8iqDo/dAPvFwxfaQEPvxdvix2NSvvmszvMb7xhHtaOL7xo+0op0jolh+3SwneKlqDATQi4PAWwJKnIc/0Qtz1ITnDV3jYomsCgYEAtrp0VlwFUzu289D+CVpqfzRg3voQ30LOhX93y4SaNsWUxg0zJWPYjlcV4Y1a4VMleH3ksxoEA0dDz7TXJ4ZZBnxqa8wj2SyAUQxrdvsq0rL+3RcToDJHh+XD07DZvIgwyC/azyAHpouRG2n/yi/YGa270DqtFOjzM5HPCGE3rjkCgYBHG4GNusRTKg1437i5KsQE+Yeokf0op1ReeQ4bDVtFx7HTmkE7Ms7mzJOR2sLl7W20hfNr7uNYezwlesWq42XEi/Pw9USCY1MoePhYnH043huBPKgRi4Egi3/OYRZ0sLV2ckatvfdbgQsfGk5Ne7rnPk6EVuYdIlKBSSMKS50fCwKBgDXKFU0GsZqazXRgZSejsg3YAVwiCK1wIRMzPrRuSGcvKmhSomezSKA+CnbnAYWq0DDz/kqqsdu1MsUF2wALkFFUdo9c/ICFlRBGs6vGrAhyIIw8qs5RfrUGcery+GWDQbjsPWETcK0aEJEdVurRwq9scQkO/LxXBqB7n5I77AQhAoGAQm9P71YFj4zIMsUTTRPEKADxsedorIMndsWCbufRSmt16WHzsCErHGHFnully0bVI2QNxUR7JNkAnALwdI7p/BcV6YVFUX8pQLpmidCFVQFtNqNMdbxPvIiYGBIW3I/HL17/HHQKCh+bHGmT2ke2iX5jts0zUZNG9P4t+xxy8z0=" + ], + "certificate": [ + "MIICnzCCAYcCBgGcRC1o1jANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhweXJvbmVhcjAeFw0yNjAyMDkyMDUwNTJaFw0zNjAyMDkyMDUyMzJaMBMxETAPBgNVBAMMCHB5cm9uZWFyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiK2464l9jIQmb65gI0sIOvy4XvR6OSIe8CPvJ40Gzys6lxacVV7ua5b3q5hMupT4slIFaKq176rPs9/O2squKvH212iRLIH6dJDCMF5jGPcgEhvZNjwvzmptOYyaRk3s1tts5InRGxznc/qJb49oN7VjLBn7fi4n1xunVyvqtFjVMfClgHKTPCadb1Z/7mixz5BlEMzp1KlpP51NnNG5BYM1KCTPEGG+9kPfTEfiQyVwEL6/sKfxyS+8zfIurYQJ7ndKx97Zjpt11xpZPG7t55PvDbpVaSKiDxFLuXAaKoKJKIP+gHXuZTb5bejlZFPxmTRlCwfiaaoG65cKlp3j0wIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAoKotujLRYymoqzsZ62Ngbd94O1hwPy522jJvRCvtsBIjfVCP/+bR/WzO7+5hg8E8Sih9qPTx3QciHko0s0/wgMZ1XZhoEBwYcuRgY3QB+uqmoWdd0UgIwdLahlH/Nl0m+34Bi/y/ErwosW6f9mmMk0iuKMWMmVFpgEQ22J8PSnlsMvuanSx/y4+nsXbtQRTDS/QEb9heuzoeENha+C28nZEQ+RkpScCYYqQ1hCjFmlIKxHlzEsTfzp2ndxrFgxEJ5mDEtHLnMP8cV+AXiVPqIzjK+u67llMpltzC1N9dtMKPjcK8JKHcEX6jmcmhFB6bbTQpB4ZGpZQKOTK1TbL3+" + ], + "priority": [ + "100" + ] + } + }, + { + "id": "4861636c-92ea-4306-bb72-7a9dce2ae909", + "name": "aes-generated", + "providerId": "aes-generated", + "subComponents": {}, + "config": { + "kid": [ + "4323b251-a7f4-41cc-94a6-4786cd2432c1" + ], + "secret": [ + "jzE-SrYR3ZWGssUcdOk4zg" + ], + "priority": [ + "100" + ] + } + }, + { + "id": "8ad6e501-848f-4980-b8c3-16cdc8f15f7a", + "name": "hmac-generated-hs512", + "providerId": "hmac-generated", + "subComponents": {}, + "config": { + "kid": [ + "764535d2-c5a5-4358-ad68-294af9a06091" + ], + "secret": [ + "D0PTe2ntsZAULY5WJD-XW-5Wj7EH52DlGs-PJOrnXBhZIqgax_TN3bKkGY69bOpGAPQcNS_o9nUD4Rh7hltghDwiJ1-GMnadfqmLI4DeR1Wt7jzCZKCUJWJrMI-r8rOEiCwWBWiqCcW3qf-06jiJdmV2NosRqvZEYPP3gJi0jeU" + ], + "priority": [ + "100" + ], + "algorithm": [ + "HS512" + ] + } + } + ] + }, + "internationalizationEnabled": true, + "supportedLocales": [ + "de", + "en", + "fr", + "es" + ], + "defaultLocale": "en", + "authenticationFlows": [ + { + "id": "90b83d06-6a25-43a9-b98d-28b98aa0b063", + "alias": "Account verification options", + "description": "Method with which to verify 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": "851d9fce-cee7-433e-9887-d5e0a4dd20fd", + "alias": "Browser - Conditional 2FA", + "description": "Flow to determine if any 2FA 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 + }, + { + "authenticatorConfig": "browser-conditional-credential", + "authenticator": "conditional-credential", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "webauthn-authenticator", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 40, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-recovery-authn-code-form", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 50, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "b506189d-c351-4447-bf50-7f2cae0bf6cb", + "alias": "Browser - Conditional Organization", + "description": "Flow to determine if the organization identity-first login is to be used", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "organization", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "b86e9734-3e2e-4657-bd59-dbf0e7da1fc5", + "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": "93035bf8-26c0-4f54-80f8-1e2190d29c4c", + "alias": "First Broker Login - Conditional Organization", + "description": "Flow to determine if the authenticator that adds organization members is to be used", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "conditional-user-configured", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 10, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "idp-add-organization-member", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "69b5f07e-3024-4279-bfb6-6569775de1ce", + "alias": "First broker login - Conditional 2FA", + "description": "Flow to determine if any 2FA 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 + }, + { + "authenticatorConfig": "first-broker-login-conditional-credential", + "authenticator": "conditional-credential", + "authenticatorFlow": false, + "requirement": "REQUIRED", + "priority": 20, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-otp-form", + "authenticatorFlow": false, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "webauthn-authenticator", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 40, + "autheticatorFlow": false, + "userSetupAllowed": false + }, + { + "authenticator": "auth-recovery-authn-code-form", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 50, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "11a4f3a7-f16d-4569-b2a1-5ec314620182", + "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": "19e82bfb-adba-4206-bd98-758d24bda31c", + "alias": "Organization", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 10, + "autheticatorFlow": true, + "flowAlias": "Browser - Conditional Organization", + "userSetupAllowed": false + } + ] + }, + { + "id": "e669d802-3c50-4b5b-b3a6-305f586ae540", + "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": "c2a1a183-f7df-4eda-b24d-ce232c150da9", + "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": "a8dbf005-be6d-4ef7-a037-8642061d9aac", + "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 2FA", + "userSetupAllowed": false + } + ] + }, + { + "id": "cb96d708-5614-4a5d-993d-ba5cef00a695", + "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": 26, + "autheticatorFlow": true, + "flowAlias": "Organization", + "userSetupAllowed": false + }, + { + "authenticatorFlow": true, + "requirement": "ALTERNATIVE", + "priority": 30, + "autheticatorFlow": true, + "flowAlias": "forms", + "userSetupAllowed": false + } + ] + }, + { + "id": "4180ab94-c998-451d-bc55-8196b76e78bf", + "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": "32eea07c-a71b-44bb-adc3-3696f088ce46", + "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": "1e6b6a1a-c297-4a12-8d38-4cadf17d3899", + "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": "5f86736f-a46a-4c75-91af-af0cbf8de636", + "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 + }, + { + "authenticatorFlow": true, + "requirement": "CONDITIONAL", + "priority": 60, + "autheticatorFlow": true, + "flowAlias": "First Broker Login - Conditional Organization", + "userSetupAllowed": false + } + ] + }, + { + "id": "2dc30b84-3f0a-4dcb-a228-f8089611ae46", + "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 2FA", + "userSetupAllowed": false + } + ] + }, + { + "id": "dc407ee4-ed1f-465f-9124-5490a600d24c", + "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": "cb050943-9ddf-4bbe-b4e5-94607a0b9d10", + "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-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 + }, + { + "authenticator": "registration-terms-and-conditions", + "authenticatorFlow": false, + "requirement": "DISABLED", + "priority": 70, + "autheticatorFlow": false, + "userSetupAllowed": false + } + ] + }, + { + "id": "9ba53cd2-6a6d-4920-aac5-ba0f61e7d2fe", + "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": "4e8251a3-f094-4549-a5a7-d2284ecc5a7f", + "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": "313abf94-b6f0-4ae3-8245-74a50cc4dd82", + "alias": "browser-conditional-credential", + "config": { + "credentials": "webauthn-passwordless" + } + }, + { + "id": "39a3ad87-eb4b-43c3-935a-e44f4d5550ff", + "alias": "create unique user config", + "config": { + "require.password.update.after.registration": "false" + } + }, + { + "id": "2ed00d5a-d965-4678-a58a-c9325f1964a4", + "alias": "first-broker-login-conditional-credential", + "config": { + "credentials": "webauthn-passwordless" + } + }, + { + "id": "e3499206-fc3f-4617-81ad-c8cfd56e1f7f", + "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_EMAIL", + "name": "Update Email", + "providerId": "UPDATE_EMAIL", + "enabled": false, + "defaultAction": false, + "priority": 70, + "config": {} + }, + { + "alias": "webauthn-register", + "name": "Webauthn Register", + "providerId": "webauthn-register", + "enabled": true, + "defaultAction": false, + "priority": 80, + "config": {} + }, + { + "alias": "webauthn-register-passwordless", + "name": "Webauthn Register Passwordless", + "providerId": "webauthn-register-passwordless", + "enabled": true, + "defaultAction": false, + "priority": 90, + "config": {} + }, + { + "alias": "VERIFY_PROFILE", + "name": "Verify Profile", + "providerId": "VERIFY_PROFILE", + "enabled": true, + "defaultAction": false, + "priority": 100, + "config": {} + }, + { + "alias": "delete_credential", + "name": "Delete Credential", + "providerId": "delete_credential", + "enabled": true, + "defaultAction": false, + "priority": 110, + "config": {} + }, + { + "alias": "idp_link", + "name": "Linking Identity Provider", + "providerId": "idp_link", + "enabled": true, + "defaultAction": false, + "priority": 120, + "config": {} + }, + { + "alias": "CONFIGURE_RECOVERY_AUTHN_CODES", + "name": "Recovery Authentication Codes", + "providerId": "CONFIGURE_RECOVERY_AUTHN_CODES", + "enabled": true, + "defaultAction": false, + "priority": 130, + "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", + "firstBrokerLoginFlow": "first broker login", + "attributes": { + "cibaBackchannelTokenDeliveryMode": "poll", + "cibaExpiresIn": "120", + "cibaAuthRequestedUserHint": "login_hint", + "oauth2DeviceCodeLifespan": "600", + "clientOfflineSessionMaxLifespan": "0", + "oauth2DevicePollingInterval": "5", + "clientSessionIdleTimeout": "0", + "parRequestUriLifespan": "60", + "clientSessionMaxLifespan": "0", + "clientOfflineSessionIdleTimeout": "0", + "cibaInterval": "5", + "realmReusableOtpCode": "false" + }, + "keycloakVersion": "26.5.2", + "userManagedAccessAllowed": false, + "organizationsEnabled": false, + "verifiableCredentialsEnabled": false, + "adminPermissionsEnabled": false, + "clientProfiles": { + "profiles": [] + }, + "clientPolicies": { + "policies": [] + } +} \ No newline at end of file diff --git a/containers/keycloak/themes/pyro-theme/login/resources/css/styles.css b/containers/keycloak/themes/pyro-theme/login/resources/css/styles.css new file mode 100644 index 0000000..a0bfe19 --- /dev/null +++ b/containers/keycloak/themes/pyro-theme/login/resources/css/styles.css @@ -0,0 +1,32 @@ + + +.login-pf body { + background: #eef1f0; +} +.login-pf-page .card-pf { + border-radius: 8px; + border: none; +} + +.pf-c-button.pf-m-primary { + background-color: #054546; + box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px; + font-size: 0.9rem; + font-weight: 500; + text-transform: uppercase; +} +.pf-c-button.pf-m-primary:hover { + background-color: #033031FF; + box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px; +} + +.pf-c-form__label-text { + font-size: 1rem; +} +#kc-header-wrapper { + text-indent: -9999px; + background-color: #054546; + background-image: url("../img/logo.svg"); + background-repeat: no-repeat; + background-position: center; +} diff --git a/containers/keycloak/themes/pyro-theme/login/resources/img/logo.svg b/containers/keycloak/themes/pyro-theme/login/resources/img/logo.svg new file mode 100644 index 0000000..f9d03df --- /dev/null +++ b/containers/keycloak/themes/pyro-theme/login/resources/img/logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/containers/keycloak/themes/pyro-theme/login/theme.properties b/containers/keycloak/themes/pyro-theme/login/theme.properties new file mode 100644 index 0000000..6a18317 --- /dev/null +++ b/containers/keycloak/themes/pyro-theme/login/theme.properties @@ -0,0 +1,5 @@ +parent=keycloak +import=common/keycloak +styles=css/login.css css/styles.css + +# https://github.com/keycloak/keycloak/tree/main/themes/src/main/resources/theme/keycloak.v2/login \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8ad2d71..d581df0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -184,6 +184,27 @@ services: - PGADMIN_DEFAULT_PASSWORD=${DB_UI_PWD} depends_on: - db + keycloak: + image: quay.io/keycloak/keycloak:26.7.3 + ports: + - "9310:9310" + environment: + KC_BOOTSTRAP_ADMIN_USERNAME: ${KEYCLOAK_USERNAME} + KC_BOOTSTRAP_ADMIN_PASSWORD: ${KEYCLOAK_PASSWORD} + KC_HTTP_PORT: 9310 + KC_HTTPS_PORT: 8443 + KC_DB: dev-file + KC_ENABLE_HTTPS: false + KC_LOG_LEVEL: info + volumes: + - "./containers/keycloak/realm:/opt/keycloak/data/import" + - "./containers/keycloak/themes:/opt/keycloak/themes" + healthcheck: + test: ["CMD-SHELL", "grep -q 'started' /opt/keycloak/data/log/server.log || exit 1"] + interval: 20s + timeout: 5s + retries: 6 + command: start-dev --import-realm --log="console,file" volumes: minio_data: