diff --git a/README.md b/README.md index 20ca97e4c1ccd139da60f9c4f375ecb10b947f37..af90c67a03b74158db095ea097619d42b1e4ee99 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,17 @@ security: # make sure to share this amongst different pods tokenSigningKey: thisisasessionkeyreplacethisjetzt ``` +## Testing locally +A convenience docker-compose allows you to test the RDPGW locally. It uses [Keycloak](http://www.keycloak.org) +and [xrdp](http://www.xrdp.org) and exposes it services on port 443. You will need to allow your browser +to connect to localhost with and self signed security certificate. For chrome set `chrome://flags/#allow-insecure-localhost`. +The username to login to both Keycloak and xrdp is `admin` as is the password. + +```bash +cd dev/docker +docker-compose build +docker-compose up +``` ## Use Point your browser to `https://your-gateway/connect`. After authentication diff --git a/dev/docker/Dockerfile b/dev/docker/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f26b14fda23a4bbb14828e55da33ec9a9ac25442 --- /dev/null +++ b/dev/docker/Dockerfile @@ -0,0 +1,31 @@ +FROM debian:buster-slim + +RUN apt-get update && \ + apt-get install -y git golang openssl curl && \ + random=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) && \ + openssl genrsa -des3 -passout pass:$random -out server.pass.key 2048 && \ + openssl rsa -passin pass:$random -in server.pass.key -out key.pem && \ + rm server.pass.key && \ + openssl req -new -sha256 -key key.pem -out server.csr \ + -subj "/C=US/ST=VA/L=SomeCity/O=MyCompany/OU=MyDivision/CN=localhost" && \ + openssl x509 -req -days 365 -in server.csr -signkey key.pem -out server.pem + +RUN git clone https://github.com/bolkedebruin/rdpgw.git && \ + cd rdpgw && \ + env GOOS=linux GOARCH=amd64 go build && \ + mkdir -p /opt/rdpgw && \ + mv rdpgw /opt/rdpgw/rdpgw && \ + rm -rf /root/go && \ + rm -rf /rdpgw + +COPY rdpgw.yaml /opt/rdpgw/rdpgw.yaml + +RUN useradd -m -d /opt/rdpgw -u 1001 -c "rdgw" rdgw && \ + mv server.pem /opt/rdpgw/server.pem && \ + mv key.pem /opt/rdpgw/key.pem && \ + chown -R 1001 /opt/rdpgw && \ + chmod +x /opt/rdpgw/rdpgw + +USER 1001 +WORKDIR /opt/rdpgw +ENTRYPOINT /opt/rdpgw/rdpgw diff --git a/dev/docker/docker-compose.yml b/dev/docker/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..e09fc1570d015e2b8802a48bf374cc4b2e0c2551 --- /dev/null +++ b/dev/docker/docker-compose.yml @@ -0,0 +1,48 @@ +version: '3.4' + +volumes: + mysql_data: + driver: local + realm-export.json: + +services: + keycloak: + image: quay.io/keycloak/keycloak:11.0.0 + hostname: keycloak + volumes: + - ${PWD}/realm-export.json:/export/realm-export.json + environment: + KEYCLOAK_USER: admin + KEYCLOAK_PASSWORD: admin + KEYCLOAK_IMPORT: /export/realm-export.json + ports: + - 8080:8080 + restart: on-failure + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/auth"] + interval: 30s + timeout: 3s + retries: 10 + start_period: 5s + xrdp: + hostname: xrdp + image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04 + ports: + - 3389:3389 + restart: on-failure + volumes: + - ${PWD}/xrdp_users.txt:/root/createusers.txt + environment: + TZ: "Europe/London" + rdpgw: + build: . + ports: + - 9443:9443 + restart: on-failure + depends_on: + - keycloak + healthcheck: + test: ["CMD", "curl", "-f", "http://keycloak:8080"] + interval: 30s + timeout: 10s + retries: 10 diff --git a/dev/docker/rdpgw.yaml b/dev/docker/rdpgw.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1897a4d6bc6d371c970ac002369209d228862282 --- /dev/null +++ b/dev/docker/rdpgw.yaml @@ -0,0 +1,21 @@ +server: + certFile: /opt/rdpgw/server.pem + keyFile: /opt/rdpgw/key.pem + gatewayAddress: localhost:9443 + port: 9443 + hosts: + - xrdp:3389 + roundRobin: false + sessionKey: thisisasessionkeyreplacethisjetz + sessionEncryptionKey: thisisasessionkeyreplacethisnunu +openId: + providerUrl: http://keycloak:8080/auth/realms/rdpgw + clientId: rdpgw + clientSecret: 01cd304c-6f43-4480-9479-618eb6fd578f +client: + usernameTemplate: "{{ username }}" + networkAutoDetect: 0 + bandwidthAutoDetect: 1 + ConnectionType: 6 +security: + tokenSigningKey: prettypleasereplacemeinproductio diff --git a/dev/docker/realm-export.json b/dev/docker/realm-export.json new file mode 100644 index 0000000000000000000000000000000000000000..d81bd5778be0c8ef374872704f4acb600a6d131c --- /dev/null +++ b/dev/docker/realm-export.json @@ -0,0 +1,2096 @@ +{ + "id": "rdpgw", + "realm": "rdpgw", + "notBefore": 0, + "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, + "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": "7d3e9415-407c-4701-978f-7a74da6475fd", + "name": "offline_access", + "description": "${role_offline-access}", + "composite": false, + "clientRole": false, + "containerId": "rdpgw", + "attributes": {} + }, + { + "id": "f9204e59-ba61-4a16-be12-8e887b0f0dde", + "name": "uma_authorization", + "description": "${role_uma_authorization}", + "composite": false, + "clientRole": false, + "containerId": "rdpgw", + "attributes": {} + } + ], + "client": { + "realm-management": [ + { + "id": "f47d842e-99d0-49fc-bc49-7fce2116cb3b", + "name": "view-events", + "description": "${role_view-events}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "18af723e-2c21-44c0-a3e3-20a2f3c12449", + "name": "manage-identity-providers", + "description": "${role_manage-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "533863d4-bede-4226-b729-eea71f7ab0d2", + "name": "realm-admin", + "description": "${role_realm-admin}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "view-events", + "manage-identity-providers", + "query-groups", + "manage-authorization", + "impersonation", + "view-realm", + "manage-realm", + "view-clients", + "query-realms", + "view-identity-providers", + "view-users", + "manage-events", + "query-clients", + "manage-users", + "view-authorization", + "create-client", + "query-users", + "manage-clients" + ] + } + }, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "4d0e444e-6e0b-4963-891d-5b0e4747a1ea", + "name": "query-groups", + "description": "${role_query-groups}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "242f6cd3-8b3b-4e0d-803e-f5d769015a02", + "name": "manage-authorization", + "description": "${role_manage-authorization}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "bd961204-a745-4429-9ad7-b1ef96bdc862", + "name": "impersonation", + "description": "${role_impersonation}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "c25b80b5-7ccc-4a47-a390-bbe8680c7b7c", + "name": "view-realm", + "description": "${role_view-realm}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "492593c9-90d3-4d2d-ae77-9d49c3a24d9e", + "name": "manage-realm", + "description": "${role_manage-realm}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "6db5d1cf-761c-4ac4-aac9-1575d148f92d", + "name": "view-clients", + "description": "${role_view-clients}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-clients" + ] + } + }, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "299c2205-b178-4ead-9ae3-a98dc2170380", + "name": "query-realms", + "description": "${role_query-realms}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "83e090b9-9a35-4e3e-8cef-b4193608b74b", + "name": "view-users", + "description": "${role_view-users}", + "composite": true, + "composites": { + "client": { + "realm-management": [ + "query-groups", + "query-users" + ] + } + }, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "57b7fff5-78c4-4e01-9544-af278db943dd", + "name": "view-identity-providers", + "description": "${role_view-identity-providers}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "a5d8623a-c94b-499d-8ff3-2881af00b247", + "name": "manage-events", + "description": "${role_manage-events}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "a16c9a60-13a0-4f72-b96f-44690f371b84", + "name": "query-clients", + "description": "${role_query-clients}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "8414d9c5-7185-49a2-a404-711cb8cad583", + "name": "view-authorization", + "description": "${role_view-authorization}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "086b0b70-910e-42a3-99f6-cc2142816df8", + "name": "manage-users", + "description": "${role_manage-users}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "7986b67c-5b60-44a4-9b12-7996dc07addb", + "name": "create-client", + "description": "${role_create-client}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "d7049730-5745-4068-b1b3-a7487bf97a32", + "name": "query-users", + "description": "${role_query-users}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + }, + { + "id": "d5097f9b-3cfd-4e85-a2ea-f654f3358d38", + "name": "manage-clients", + "description": "${role_manage-clients}", + "composite": false, + "clientRole": true, + "containerId": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "attributes": {} + } + ], + "security-admin-console": [], + "admin-cli": [], + "account-console": [], + "rdpgw": [], + "broker": [ + { + "id": "795a21fb-4e03-431a-bc73-d8a62d3bac3f", + "name": "read-token", + "description": "${role_read-token}", + "composite": false, + "clientRole": true, + "containerId": "2cbb3518-9901-4d6c-b11c-f686651a974b", + "attributes": {} + } + ], + "account": [ + { + "id": "c4cfeea8-ef64-47e2-be5f-8155f03911f8", + "name": "view-consent", + "description": "${role_view-consent}", + "composite": false, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + }, + { + "id": "daadfbcb-7c32-4043-b10a-cb576317929d", + "name": "view-profile", + "description": "${role_view-profile}", + "composite": false, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + }, + { + "id": "b4e47d88-4839-4de2-b9f5-dd9c97d255f9", + "name": "manage-account", + "description": "${role_manage-account}", + "composite": true, + "composites": { + "client": { + "account": [ + "manage-account-links" + ] + } + }, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + }, + { + "id": "d4348090-33e0-45dd-84ee-06bed661b2b2", + "name": "manage-account-links", + "description": "${role_manage-account-links}", + "composite": false, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + }, + { + "id": "289e7e74-14c4-4297-999d-4ab34af29c9e", + "name": "manage-consent", + "description": "${role_manage-consent}", + "composite": true, + "composites": { + "client": { + "account": [ + "view-consent" + ] + } + }, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + }, + { + "id": "763a36e0-f956-4b18-8722-fe3deee239a7", + "name": "view-applications", + "description": "${role_view-applications}", + "composite": false, + "clientRole": true, + "containerId": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "attributes": {} + } + ] + } + }, + "groups": [], + "defaultRoles": [ + "offline_access", + "uma_authorization" + ], + "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": "cf88a521-435d-4d00-a2a1-b629492a5cce", + "createdTimestamp": 1595913346106, + "username": "admin", + "enabled": true, + "totp": false, + "emailVerified": true, + "firstName": "admin", + "lastName": "admin", + "email": "admin@rdpgw", + "credentials": [ + { + "id": "bc041205-0f56-4779-b932-e43ceabacd68", + "type": "password", + "createdDate": 1595913354685, + "secretData": "{\"value\":\"S9FecBaelZhuPyFGYLpU+0R7j3x9gUj8TCuhgokBX65UDs74Ahl2T3Xg8KCvJwuz4wlk0KnXfU4zxeOjQeXhAA==\",\"salt\":\"q+L4adLv1YaXuy0jIV7YLQ==\"}", + "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\"}" + } + ], + "disableableCredentialTypes": [], + "requiredActions": [], + "realmRoles": [ + "offline_access", + "uma_authorization" + ], + "clientRoles": { + "account": [ + "view-profile", + "manage-account" + ] + }, + "notBefore": 0, + "groups": [] + } + ], + "scopeMappings": [ + { + "clientScope": "offline_access", + "roles": [ + "offline_access" + ] + } + ], + "clientScopeMappings": { + "account": [ + { + "client": "account-console", + "roles": [ + "manage-account" + ] + } + ] + }, + "clients": [ + { + "id": "189f9f54-53c4-4ee6-953d-89cd7ffb57e5", + "clientId": "account", + "name": "${client_account}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/rdpgw/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "c69db5d7-c439-4d35-a2c1-08c4fdb3688b", + "defaultRoles": [ + "manage-account", + "view-profile" + ], + "redirectUris": [ + "/realms/rdpgw/account/*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "4a2267f8-f5ec-476e-80d7-ed3de9192b2c", + "clientId": "account-console", + "name": "${client_account-console}", + "rootUrl": "${authBaseUrl}", + "baseUrl": "/realms/rdpgw/account/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "7cc8e398-c7af-424a-b14c-c2bf7877fd9d", + "redirectUris": [ + "/realms/rdpgw/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": "ed550929-d497-46c1-a9d7-6651bd18376c", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + } + ], + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "52e68355-e534-44cb-8eeb-7dff46f0e6dd", + "clientId": "admin-cli", + "name": "${client_admin-cli}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "8a59468d-8f76-49dc-9fe7-07c3640de49d", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": false, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": false, + "publicClient": true, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "2cbb3518-9901-4d6c-b11c-f686651a974b", + "clientId": "broker", + "name": "${client_broker}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "088c21ed-165d-4e5a-bce3-e78755992f93", + "redirectUris": [], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": false, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": {}, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": false, + "nodeReRegistrationTimeout": 0, + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "3d5c3a65-8cdc-44ba-8796-3297643b75fc", + "clientId": "rdpgw", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "01cd304c-6f43-4480-9479-618eb6fd578f", + "redirectUris": [ + "*" + ], + "webOrigins": [], + "notBefore": 0, + "bearerOnly": false, + "consentRequired": false, + "standardFlowEnabled": true, + "implicitFlowEnabled": false, + "directAccessGrantsEnabled": true, + "serviceAccountsEnabled": false, + "publicClient": false, + "frontchannelLogout": false, + "protocol": "openid-connect", + "attributes": { + "saml.assertion.signature": "false", + "saml.force.post.binding": "false", + "saml.multivalued.roles": "false", + "saml.encrypt": "false", + "saml.server.signature": "false", + "saml.server.signature.keyinfo.ext": "false", + "exclude.session.state.from.auth.response": "false", + "saml_force_name_id_format": "false", + "saml.client.signature": "false", + "tls.client.certificate.bound.access.tokens": "false", + "saml.authnstatement": "false", + "display.on.consent.screen": "false", + "saml.onetimeuse.condition": "false" + }, + "authenticationFlowBindingOverrides": {}, + "fullScopeAllowed": true, + "nodeReRegistrationTimeout": -1, + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "3cb3e0b6-30c5-489d-be07-108091a5001c", + "clientId": "realm-management", + "name": "${client_realm-management}", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "f1789918-b878-4560-8e16-2ceca6c4a679", + "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", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + }, + { + "id": "2b47364b-4842-4a4d-a2f2-85d3a68fecab", + "clientId": "security-admin-console", + "name": "${client_security-admin-console}", + "rootUrl": "${authAdminUrl}", + "baseUrl": "/admin/rdpgw/console/", + "surrogateAuthRequired": false, + "enabled": true, + "alwaysDisplayInConsole": false, + "clientAuthenticatorType": "client-secret", + "secret": "7ad37e6b-a5c3-403c-81b1-01089cea35c6", + "redirectUris": [ + "/admin/rdpgw/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": "6441f21d-7608-404a-8d29-9c652a55a585", + "name": "locale", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "locale", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "locale", + "jsonType.label": "String" + } + } + ], + "defaultClientScopes": [ + "web-origins", + "role_list", + "profile", + "roles", + "email" + ], + "optionalClientScopes": [ + "address", + "phone", + "offline_access", + "microprofile-jwt" + ] + } + ], + "clientScopes": [ + { + "id": "accf6ea6-064f-4463-8e5e-7952835f6c07", + "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": "5881bf24-0a34-444c-8121-c6fb50df83b3", + "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": "c0e63f54-f96c-4467-8c11-dcda318cfcb6", + "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": "79ffa082-417b-433b-ac26-d613fb0e2111", + "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": "2beeb261-3d7c-4e0b-a40b-8d73b512d596", + "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": "26fd59d0-d193-440f-ae64-9b66860353b0", + "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": "3ebcdbb7-469a-473c-a680-a1cc8705a509", + "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": "3eb1a07c-a689-4515-8439-6b870ec7c9df", + "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": "4ea1cd07-b6ad-4537-9f1c-213bc49cc791", + "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": "7630684e-9071-4257-b3d4-a0fc6fbbc398", + "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": "3967f434-da09-4324-b725-6532daa33210", + "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": "920eff92-9914-4c83-b44a-85a13a92b8d3", + "name": "phone number verified", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "phoneNumberVerified", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "phone_number_verified", + "jsonType.label": "boolean" + } + } + ] + }, + { + "id": "928e8c4a-158f-4539-bde6-d8ec5ae83930", + "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": "6fa4562a-4d89-4577-b53a-1b62ae8cc17f", + "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": "693c3a4c-be11-45ff-b064-bcbc0e4465a0", + "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": "2d1b3419-b695-4c68-ad51-272a06be0c86", + "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": "8bc6bfc8-6bbc-4c18-b21f-7d47b6497797", + "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": "1059f52c-e8f4-4313-b537-6b917684f07e", + "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": "6bea7589-1fdc-4254-aa42-70af0c9e14e4", + "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": "778dbe3c-3264-4cff-b48e-6344f4ccc878", + "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": "81375c59-9052-48e5-8795-e581d49d7881", + "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": "e27bc568-c8e4-4e17-acd0-144946398ff4", + "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": "93271d4a-579b-4552-a40c-1981288511b0", + "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": "25103c33-e148-4070-92e6-1d8a0e09f2e0", + "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": "8a32bc73-3db5-40a2-9330-fdb2f6865f9e", + "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": "74276d90-164d-476f-a4ad-f0fbf603e2c3", + "name": "updated at", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-attribute-mapper", + "consentRequired": false, + "config": { + "userinfo.token.claim": "true", + "user.attribute": "updatedAt", + "id.token.claim": "true", + "access.token.claim": "true", + "claim.name": "updated_at", + "jsonType.label": "String" + } + }, + { + "id": "902167bb-ce2c-4d51-8f58-394af17132a9", + "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": "650130ce-48b7-4530-b6b7-87fc1b3bce05", + "name": "role_list", + "description": "SAML role list", + "protocol": "saml", + "attributes": { + "consent.screen.text": "${samlRoleListScopeConsentText}", + "display.on.consent.screen": "true" + }, + "protocolMappers": [ + { + "id": "4013f21e-4258-4074-8f96-82eca3d60682", + "name": "role list", + "protocol": "saml", + "protocolMapper": "saml-role-list-mapper", + "consentRequired": false, + "config": { + "single": "false", + "attribute.nameformat": "Basic", + "attribute.name": "Role" + } + } + ] + }, + { + "id": "be3b3522-d19d-49e9-8b38-68f90612969b", + "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": "3e80c33e-d7da-4270-9b77-ba2efc04d934", + "name": "audience resolve", + "protocol": "openid-connect", + "protocolMapper": "oidc-audience-resolve-mapper", + "consentRequired": false, + "config": {} + }, + { + "id": "96909c10-245a-4535-9a67-a9bbee489d51", + "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": "0b25cd81-dc5b-4d14-9bc8-7dfa26bfc856", + "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": "b7cf52d9-1401-4860-a88c-efdad4e8ddf5", + "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": "329f1f5e-5361-4332-9373-49090e4c472b", + "name": "allowed web origins", + "protocol": "openid-connect", + "protocolMapper": "oidc-allowed-origins-mapper", + "consentRequired": false, + "config": {} + } + ] + } + ], + "defaultDefaultClientScopes": [ + "role_list", + "profile", + "web-origins", + "roles", + "email" + ], + "defaultOptionalClientScopes": [ + "microprofile-jwt", + "offline_access", + "phone", + "address" + ], + "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, + "components": { + "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [ + { + "id": "c0b19232-3f81-4668-a155-b86177343508", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "6bb490a6-d403-4d14-bdf5-f0a96a50015e", + "name": "Trusted Hosts", + "providerId": "trusted-hosts", + "subType": "anonymous", + "subComponents": {}, + "config": { + "host-sending-registration-request-must-match": [ + "true" + ], + "client-uris-must-match": [ + "true" + ] + } + }, + { + "id": "a7f4f3a0-0cd3-4c74-8c46-5b7d9f937b1c", + "name": "Allowed Client Scopes", + "providerId": "allowed-client-templates", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allow-default-scopes": [ + "true" + ] + } + }, + { + "id": "d2b2f87c-9f49-483d-bb9d-e4401b544acd", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "authenticated", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-usermodel-attribute-mapper", + "oidc-usermodel-property-mapper", + "oidc-address-mapper", + "saml-role-list-mapper", + "oidc-sha256-pairwise-sub-mapper", + "saml-user-property-mapper", + "saml-user-attribute-mapper", + "oidc-full-name-mapper" + ] + } + }, + { + "id": "70e7a744-f3f6-41d4-9745-3aba38b0e237", + "name": "Consent Required", + "providerId": "consent-required", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "3e658777-9389-45ae-afff-bb1d83ece3bc", + "name": "Max Clients Limit", + "providerId": "max-clients", + "subType": "anonymous", + "subComponents": {}, + "config": { + "max-clients": [ + "200" + ] + } + }, + { + "id": "099f2c0c-667b-44fe-a230-7f4409c912ea", + "name": "Full Scope Disabled", + "providerId": "scope", + "subType": "anonymous", + "subComponents": {}, + "config": {} + }, + { + "id": "aa5466f9-b7f7-4249-9587-976c511f173e", + "name": "Allowed Protocol Mapper Types", + "providerId": "allowed-protocol-mappers", + "subType": "anonymous", + "subComponents": {}, + "config": { + "allowed-protocol-mapper-types": [ + "oidc-address-mapper", + "oidc-full-name-mapper", + "oidc-usermodel-attribute-mapper", + "oidc-usermodel-property-mapper", + "saml-user-property-mapper", + "oidc-sha256-pairwise-sub-mapper", + "saml-user-attribute-mapper", + "saml-role-list-mapper" + ] + } + } + ], + "org.keycloak.keys.KeyProvider": [ + { + "id": "9d5a4697-31c1-4ba6-a480-4b6f42f908ce", + "name": "hmac-generated", + "providerId": "hmac-generated", + "subComponents": {}, + "config": { + "kid": [ + "e4e986d6-2401-468e-a90f-dee6be50b729" + ], + "secret": [ + "wKUnrFtvBE8gm2YXhLbqAEIbsv68fgZVu_Ww-WqxkNPWUG95eMxOgQwVSCVR4u0NkB570iBXRsNt2feyznY47g" + ], + "priority": [ + "100" + ], + "algorithm": [ + "HS256" + ] + } + }, + { + "id": "e4e19f58-1388-4b32-9a43-a79a459b1bbf", + "name": "rsa-generated", + "providerId": "rsa-generated", + "subComponents": {}, + "config": { + "privateKey": [ + "MIIEpAIBAAKCAQEAm2ph6ITrO7mvWGJc8us9XmhKRhwfxkOOwrfnUfB6NPO0YKkHzsnMAdFvKKAlsgCysoXNRs6eyzcifkrgEHSA8BfinIqEPVUsQpUPm1XSQ7tEnQhs2b/SzCXgkelrfUWv3EACnILpJq3+Yv/10w9qndN19KL6UyAwrWrlBvCxvP89mTiMrSRPHYt1/kyZI6Tv6g8333/0OA8LRNPM/zcZwqpOJvY1yhdbKw+KWt3Vi9lCQbUIh4fD67YMRMx/MHdr4NkRVJf+jHwP3UO7PvNDn/+KvA4FlYy/znyTeXmCWst6nbj0dtTzhmnFud/62ybDTysNdOj8IXucp6G3Sd2GMQIDAQABAoIBAEBWJ7XT4HVXBul1vrio/Typu6WOWvD+YojlDJN1E4H8KP2iu6K1EwjlpDiTI0eu1krk7PeU7VN+vX6+jEcDk6TQnnTjOp8RNUNS5aUOP/7d9Sd0p2r059SvEWoV0POI96YbsXkNEGt8t8RP5Xm79gzjzv64wRvMRZpkl+7pkQqFkAS7QfA+2arWHsVq3uuUvBlQhFt5pa69RNeKleLKiZVqGVc5hfr/Ha2Zd+5rIrWrZiZXZBSCIsxrskeN9I2jwLqZqNwrrZIAJUyHL64Ut+d+oaUwzbMwybJporVEv4wfWhgGRsOxPoRGEPecrzz1wfChhZLsnwvfhNJk4pR0KkkCgYEA54X24j1yjdqm+bY6TJmGArf5NHJ5HEgjiNVuUJFNDNCCkA27uGs+YYph0MaMzdiyF7tC8KAQUchtukPGXhDtZpba6vUo09i9zc4/SG7P0XtjgdA6Ot+/aAoI3XUqEuVjnDbvapg4SuHWUQ06C49Ud3+8HlTnUemYTkWLyjTy3hMCgYEAq9ib3jndGt51DKhNvi7bzTAnvMTR1viXltjb7sgBcsyQpTtD/Wmrd9Zliyeykb3aOe1g4MebwyaGGdkDTCydV5sVH1D0SwOhp5C4gVUlLqeFK4PzeD05Q5TwN/FUgRiHFMclCrqCcYWjnhBfIzKi/oGqn+VP/AFccIre+vCoAysCgYA/I+DFqH5iQ1xAQ7s4grHycdvrusBevym5uoNAQ7Agq4i/4o7sZ4r2rPeqKUvjI5LGOBK0buKkeyW5o5wosTMdREzlwQBmbfitdO77QQU6Gw1zLKeEwNqBdCMgykA0MQzuYGkAyAyqF1cMea/30Rn3EQXru7nuM+eOiRbriW8mswKBgQCMxs4pps1zDXpl/Bp0Cn8WALUM90/QA6ZrdQv2+PH20Y5NTdfM6ZwGeCSHcuXebuEvQz9x5RO9Mvn4gscoyAO9mNYc6Xy3Vyo+01fS26WyKpn1pAr4HW+j5YdEzPalKyq94sZ9m3zw8sGu40qM0xaj2CWnB3wWvia0K4+vkyaQMQKBgQCRo8D1ntlCtUIb1IqbubSINJ6M3y6hlBkzhDW6dcZBwD9V231sNw9Z+6ogqSq7rVpnCze7ThdqKtB2CngCrniUjoHv+FdUsnN6dBZ5eziJyQfnW0OMCbjVOg1eVOaqiclNNrt0wVlA+2s/SHtEZbTEEjN/zvCWJlLA9P9lFs2Q5w==" + ], + "certificate": [ + "MIICmTCCAYECBgFzk9jf5zANBgkqhkiG9w0BAQsFADAQMQ4wDAYDVQQDDAVyZHBndzAeFw0yMDA3MjgwNTEzNTBaFw0zMDA3MjgwNTE1MzBaMBAxDjAMBgNVBAMMBXJkcGd3MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2ph6ITrO7mvWGJc8us9XmhKRhwfxkOOwrfnUfB6NPO0YKkHzsnMAdFvKKAlsgCysoXNRs6eyzcifkrgEHSA8BfinIqEPVUsQpUPm1XSQ7tEnQhs2b/SzCXgkelrfUWv3EACnILpJq3+Yv/10w9qndN19KL6UyAwrWrlBvCxvP89mTiMrSRPHYt1/kyZI6Tv6g8333/0OA8LRNPM/zcZwqpOJvY1yhdbKw+KWt3Vi9lCQbUIh4fD67YMRMx/MHdr4NkRVJf+jHwP3UO7PvNDn/+KvA4FlYy/znyTeXmCWst6nbj0dtTzhmnFud/62ybDTysNdOj8IXucp6G3Sd2GMQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA98ChorrZyQyXgo0PidEMamx7weDPRkzuuVOYoObKilT00OsofMFIRk6EGrCsgzbwVl8ppPxHY6I7A0MY2Z/Ym7KPFSNmNLiGZ+zinYk2tQicGxnr0cUjWYljfu2aTVO4M1XzUCown15YdhKOpFTHq6xG8Tzj4jo2KfmHGeCYR3tb1kVvuW+nZbLLd59RGrQ/z2dLDzG4SZSexWCGJaS41Ds2o5upp/8llgZLzVE7dI3tVfHF6/OhzRNTSiYNZ3EUWxpbDwR+gWJGV9y7ChobDSMdSIDTPt487T7DblK/XHUGXf2BzYnReaZP9sqzuHhPGytY/v6cibPZYAQC/l93U" + ], + "priority": [ + "100" + ] + } + }, + { + "id": "f3f900e7-cd5f-4152-bebb-29ae83384000", + "name": "aes-generated", + "providerId": "aes-generated", + "subComponents": {}, + "config": { + "kid": [ + "02898135-68b3-4c04-b17e-328ac3b1788e" + ], + "secret": [ + "7HcF_BMwABOtQgVlWpDJNw" + ], + "priority": [ + "100" + ] + } + } + ] + }, + "internationalizationEnabled": false, + "supportedLocales": [], + "authenticationFlows": [ + { + "id": "1dc2a0e3-a6c8-481a-ab8d-1a8c461a94bf", + "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", + "requirement": "ALTERNATIVE", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "ALTERNATIVE", + "priority": 20, + "flowAlias": "Verify Existing Account by Re-authentication", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "fdd39915-e6b3-400f-99f7-55f46dce48af", + "alias": "Authentication Options", + "description": "Authentication options.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "basic-auth", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "basic-auth-otp", + "requirement": "DISABLED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "auth-spnego", + "requirement": "DISABLED", + "priority": 30, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "c274c775-cfa2-48b0-98d9-f034cb1105c8", + "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", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "auth-otp-form", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "d310cadd-23ef-4853-a695-c6b86cf6947e", + "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", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "direct-grant-validate-otp", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "033fb811-4289-4b6d-b817-244e3eb02368", + "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", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "auth-otp-form", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "f2a9eb60-8f1f-4a62-9a0e-66991d2f7f8c", + "alias": "Handle Existing Account", + "description": "Handle what to do if there is existing account with same email/username like authenticated identity provider", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-confirm-link", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "REQUIRED", + "priority": 20, + "flowAlias": "Account verification options", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "d1839b9f-e602-4779-9af1-7ddaf908f100", + "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", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "reset-otp", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "a81a5226-c1c8-4911-b07f-ae8784d194ce", + "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", + "requirement": "ALTERNATIVE", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "ALTERNATIVE", + "priority": 20, + "flowAlias": "Handle Existing Account", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "f58d6f59-61b0-475a-a4db-7e5fb5e902a0", + "alias": "Verify Existing Account by Re-authentication", + "description": "Reauthentication of existing account", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "idp-username-password-form", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "CONDITIONAL", + "priority": 20, + "flowAlias": "First broker login - Conditional OTP", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "e8ff7ab3-6563-48b7-be51-95964de28761", + "alias": "browser", + "description": "browser based authentication", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-cookie", + "requirement": "ALTERNATIVE", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "auth-spnego", + "requirement": "DISABLED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "identity-provider-redirector", + "requirement": "ALTERNATIVE", + "priority": 25, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "ALTERNATIVE", + "priority": 30, + "flowAlias": "forms", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "974c609c-25f5-47f9-8adf-3704d49e7260", + "alias": "clients", + "description": "Base authentication for clients", + "providerId": "client-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "client-secret", + "requirement": "ALTERNATIVE", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "client-jwt", + "requirement": "ALTERNATIVE", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "client-secret-jwt", + "requirement": "ALTERNATIVE", + "priority": 30, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "client-x509", + "requirement": "ALTERNATIVE", + "priority": 40, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "b3020265-1e8b-4335-aa74-42695a31e883", + "alias": "direct grant", + "description": "OpenID Connect Resource Owner Grant", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "direct-grant-validate-username", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "direct-grant-validate-password", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "CONDITIONAL", + "priority": 30, + "flowAlias": "Direct Grant - Conditional OTP", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "1a9660a3-d943-4194-a730-0f6180d117e4", + "alias": "docker auth", + "description": "Used by Docker clients to authenticate against the IDP", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "docker-http-basic-authenticator", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "89da7a79-acef-4e64-bf60-f5bb8e1da08f", + "alias": "first broker login", + "description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticatorConfig": "review profile config", + "authenticator": "idp-review-profile", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "REQUIRED", + "priority": 20, + "flowAlias": "User creation or linking", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "39358f12-67c2-4f13-a3ca-a42c9c6b8f19", + "alias": "forms", + "description": "Username, password, otp and other auth forms.", + "providerId": "basic-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "auth-username-password-form", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "CONDITIONAL", + "priority": 20, + "flowAlias": "Browser - Conditional OTP", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "67704510-949a-4724-89b2-e9e50fb635f2", + "alias": "http challenge", + "description": "An authentication flow based on challenge-response HTTP Authentication Schemes", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "no-cookie-redirect", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "REQUIRED", + "priority": 20, + "flowAlias": "Authentication Options", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "b961a8c5-beaa-4868-94f5-1f66b859dfe2", + "alias": "registration", + "description": "registration flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-page-form", + "requirement": "REQUIRED", + "priority": 10, + "flowAlias": "registration form", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "27cc0c59-495a-4d34-ab04-28826cdd6b3c", + "alias": "registration form", + "description": "registration form", + "providerId": "form-flow", + "topLevel": false, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "registration-user-creation", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "registration-profile-action", + "requirement": "REQUIRED", + "priority": 40, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "registration-password-action", + "requirement": "REQUIRED", + "priority": 50, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "registration-recaptcha-action", + "requirement": "DISABLED", + "priority": 60, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + }, + { + "id": "76b03ccd-1420-4fd3-9e9a-4458da896775", + "alias": "reset credentials", + "description": "Reset credentials for a user if they forgot their password or something", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "reset-credentials-choose-user", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "reset-credential-email", + "requirement": "REQUIRED", + "priority": 20, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "authenticator": "reset-password", + "requirement": "REQUIRED", + "priority": 30, + "userSetupAllowed": false, + "autheticatorFlow": false + }, + { + "requirement": "CONDITIONAL", + "priority": 40, + "flowAlias": "Reset - Conditional OTP", + "userSetupAllowed": false, + "autheticatorFlow": true + } + ] + }, + { + "id": "4c4aa0a6-b612-4f9c-a4b6-fd512b071129", + "alias": "saml ecp", + "description": "SAML ECP Profile Authentication Flow", + "providerId": "basic-flow", + "topLevel": true, + "builtIn": true, + "authenticationExecutions": [ + { + "authenticator": "http-basic-authenticator", + "requirement": "REQUIRED", + "priority": 10, + "userSetupAllowed": false, + "autheticatorFlow": false + } + ] + } + ], + "authenticatorConfig": [ + { + "id": "1afaaa8d-bfd2-4746-a589-efa07777e2e7", + "alias": "create unique user config", + "config": { + "require.password.update.after.registration": "false" + } + }, + { + "id": "c55002f8-26da-443d-be1b-087c761d8c64", + "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": "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": {}, + "keycloakVersion": "11.0.0", + "userManagedAccessAllowed": false +} diff --git a/dev/docker/xrdp_users.txt b/dev/docker/xrdp_users.txt new file mode 100644 index 0000000000000000000000000000000000000000..dee7b9c19b108c142d989cc3c97fce55f29cbce5 --- /dev/null +++ b/dev/docker/xrdp_users.txt @@ -0,0 +1 @@ +admin:admin:Y