From e28eb4bada91ef92084282212dc897eac066dcf8 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sun, 3 Aug 2025 19:45:21 +0200 Subject: [PATCH] Add present-portal Keycloak client in realm import file --- .../Resources/present-portal-realm.json | 65 +++++++++++++++++-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/PresentPortal.AppHost/Resources/present-portal-realm.json b/PresentPortal.AppHost/Resources/present-portal-realm.json index 36d27d0..aa60c4d 100644 --- a/PresentPortal.AppHost/Resources/present-portal-realm.json +++ b/PresentPortal.AppHost/Resources/present-portal-realm.json @@ -247,6 +247,7 @@ "attributes" : { } } ], "security-admin-console" : [ ], + "present-portal" : [ ], "admin-cli" : [ ], "account-console" : [ ], "api" : [ ], @@ -380,6 +381,8 @@ "users" : [ { "id" : "016cc1d8-09ab-4ad5-89d5-20e9914bc842", "username" : "test.user", + "firstName" : "Test", + "lastName" : "User", "email" : "test.user@example.com", "emailVerified" : true, "createdTimestamp" : 1754238635582, @@ -389,8 +392,8 @@ "id" : "493e771f-8532-42b8-92d3-01d33b93eb95", "type" : "password", "userLabel" : "Password", - "createdDate" : 1754238756842, - "secretData" : "{\"value\":\"eKhtoLFdov6FTYyJbNgijMwjDTeRUIOgSAlqn1G1yhc=\",\"salt\":\"7EGEeMKMSeQAioeai2PkhQ==\",\"additionalParameters\":{}}", + "createdDate" : 1754242795823, + "secretData" : "{\"value\":\"/WcflTziw6svOyCBrhwANxyIciTotcR77SJi8sP1qNA=\",\"salt\":\"cIO+sgep76ozrA6AP1O/Xw==\",\"additionalParameters\":{}}", "credentialData" : "{\"hashIterations\":5,\"algorithm\":\"argon2\",\"additionalParameters\":{\"hashLength\":[\"32\"],\"memory\":[\"7168\"],\"type\":[\"id\"],\"version\":[\"1.3\"],\"parallelism\":[\"1\"]}}" } ], "disableableCredentialTypes" : [ ], @@ -579,6 +582,60 @@ "nodeReRegistrationTimeout" : 0, "defaultClientScopes" : [ "web-origins", "acr", "profile", "roles", "basic", "email" ], "optionalClientScopes" : [ "address", "phone", "organization", "offline_access", "microprofile-jwt" ] + }, { + "id" : "24189629-9558-4179-9e60-f8c9cf304222", + "clientId" : "present-portal", + "name" : "", + "description" : "", + "rootUrl" : "http://localhost:5102", + "adminUrl" : "", + "baseUrl" : "http://localhost:5102", + "surrogateAuthRequired" : false, + "enabled" : true, + "alwaysDisplayInConsole" : false, + "clientAuthenticatorType" : "client-secret", + "redirectUris" : [ "/*" ], + "webOrigins" : [ "/*" ], + "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", + "oidc.ciba.grant.enabled" : "false", + "backchannel.logout.session.required" : "true", + "standard.token.exchange.enabled" : "false", + "frontchannel.logout.session.required" : "true", + "oauth2.device.authorization.grant.enabled" : "false", + "display.on.consent.screen" : "false", + "backchannel.logout.revoke.offline.tokens" : "false" + }, + "authenticationFlowBindingOverrides" : { }, + "fullScopeAllowed" : true, + "nodeReRegistrationTimeout" : -1, + "protocolMappers" : [ { + "id" : "e82a668b-2664-4eb6-9f53-36087cc51639", + "name" : "AudienceMapper", + "protocol" : "openid-connect", + "protocolMapper" : "oidc-audience-mapper", + "consentRequired" : false, + "config" : { + "included.client.audience" : "present-portal", + "id.token.claim" : "false", + "lightweight.claim" : "false", + "introspection.token.claim" : "true", + "access.token.claim" : "true", + "userinfo.token.claim" : "false" + } + } ], + "defaultClientScopes" : [ "web-origins", "acr", "profile", "roles", "basic", "email" ], + "optionalClientScopes" : [ "address", "phone", "organization", "offline_access", "microprofile-jwt" ] }, { "id" : "a537806a-1e37-4e09-aceb-63439623b531", "clientId" : "realm-management", @@ -1319,7 +1376,7 @@ "subType" : "authenticated", "subComponents" : { }, "config" : { - "allowed-protocol-mapper-types" : [ "oidc-full-name-mapper", "saml-user-property-mapper", "oidc-sha256-pairwise-sub-mapper", "oidc-address-mapper", "saml-role-list-mapper", "saml-user-attribute-mapper", "oidc-usermodel-property-mapper", "oidc-usermodel-attribute-mapper" ] + "allowed-protocol-mapper-types" : [ "oidc-usermodel-attribute-mapper", "oidc-address-mapper", "saml-user-property-mapper", "saml-user-attribute-mapper", "oidc-usermodel-property-mapper", "oidc-full-name-mapper", "saml-role-list-mapper", "oidc-sha256-pairwise-sub-mapper" ] } }, { "id" : "7c7a09a7-dd4b-4276-addb-e37cef12df36", @@ -1337,7 +1394,7 @@ "subType" : "anonymous", "subComponents" : { }, "config" : { - "allowed-protocol-mapper-types" : [ "saml-role-list-mapper", "oidc-full-name-mapper", "oidc-usermodel-property-mapper", "oidc-address-mapper", "saml-user-attribute-mapper", "oidc-usermodel-attribute-mapper", "oidc-sha256-pairwise-sub-mapper", "saml-user-property-mapper" ] + "allowed-protocol-mapper-types" : [ "saml-role-list-mapper", "saml-user-property-mapper", "oidc-address-mapper", "oidc-usermodel-attribute-mapper", "oidc-sha256-pairwise-sub-mapper", "saml-user-attribute-mapper", "oidc-full-name-mapper", "oidc-usermodel-property-mapper" ] } }, { "id" : "14d408cd-b052-4089-bd01-19e36925cdf5",