From 5388ec608968fa1b91c9673ef1357fb3324df8f0 Mon Sep 17 00:00:00 2001 From: Julio Casal Date: Fri, 19 Jul 2024 06:31:06 -0700 Subject: [PATCH] Remove testuser from Keycloak playground realm --- playground/keycloak/README.md | 7 +++-- .../keycloak/realms/weathershop-realm.json | 28 ++----------------- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/playground/keycloak/README.md b/playground/keycloak/README.md index 69180e7076..fe0d384a90 100644 --- a/playground/keycloak/README.md +++ b/playground/keycloak/README.md @@ -4,6 +4,7 @@ To try out the playground: 1. Run the application from the `Keycloak.AppHost` project dir 2. From your Aspire dashboard, browse to the webfrontend endpoint 3. Click **Login** -4. Use the following credentials: - - **Username**: `testuser` - - **Password**: `123` \ No newline at end of file +4. On the Keycloak sign in page, click **Register** +5. Enter any values for username, password, etc, and click **Register** +6. You will be redirected back to the web frontend +7. You'll notice that you are now logged in and the weather data loads successfully \ No newline at end of file diff --git a/playground/keycloak/realms/weathershop-realm.json b/playground/keycloak/realms/weathershop-realm.json index ef004ecfb8..3549afdbf9 100644 --- a/playground/keycloak/realms/weathershop-realm.json +++ b/playground/keycloak/realms/weathershop-realm.json @@ -378,30 +378,6 @@ "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister" : false, "webAuthnPolicyPasswordlessAcceptableAaguids" : [ ], "webAuthnPolicyPasswordlessExtraOrigins" : [ ], - "users" : [ { - "id" : "8e6aa491-29b4-4701-ac20-a6f0b72ebf2c", - "username" : "testuser", - "firstName" : "Test", - "lastName" : "User", - "email" : "testuser@example.com", - "emailVerified" : true, - "createdTimestamp" : 1719876361930, - "enabled" : true, - "totp" : false, - "credentials" : [ { - "id" : "662acb61-35aa-4550-aa3d-1b91d548379b", - "type" : "password", - "userLabel" : "My password", - "createdDate" : 1719876373873, - "secretData" : "{\"value\":\"4DfZJfojd4Ef08uoboJ2V+RMpF20yGEbw2pDouefjmcTmAVxE6wPkbLN03u/bAElCm4Y/ndJ9YruH3Q5pFuSLQ==\",\"salt\":\"E8I7GRLxZI2lzpKCI6h/bw==\",\"additionalParameters\":{}}", - "credentialData" : "{\"hashIterations\":210000,\"algorithm\":\"pbkdf2-sha512\",\"additionalParameters\":{}}" - } ], - "disableableCredentialTypes" : [ ], - "requiredActions" : [ ], - "realmRoles" : [ "default-roles-weathershop" ], - "notBefore" : 0, - "groups" : [ ] - } ], "scopeMappings" : [ { "clientScope" : "offline_access", "roles" : [ "offline_access" ] @@ -1298,7 +1274,7 @@ "subType" : "authenticated", "subComponents" : { }, "config" : { - "allowed-protocol-mapper-types" : [ "saml-user-attribute-mapper", "saml-user-property-mapper", "oidc-usermodel-attribute-mapper", "oidc-sha256-pairwise-sub-mapper", "oidc-usermodel-property-mapper", "oidc-full-name-mapper", "oidc-address-mapper", "saml-role-list-mapper" ] + "allowed-protocol-mapper-types" : [ "oidc-usermodel-attribute-mapper", "oidc-address-mapper", "saml-role-list-mapper", "saml-user-property-mapper", "saml-user-attribute-mapper", "oidc-sha256-pairwise-sub-mapper", "oidc-full-name-mapper", "oidc-usermodel-property-mapper" ] } }, { "id" : "241c5dea-68b9-4684-a816-80b08ef86bff", @@ -1314,7 +1290,7 @@ "subType" : "anonymous", "subComponents" : { }, "config" : { - "allowed-protocol-mapper-types" : [ "saml-user-property-mapper", "oidc-sha256-pairwise-sub-mapper", "oidc-full-name-mapper", "oidc-usermodel-attribute-mapper", "oidc-address-mapper", "saml-user-attribute-mapper", "saml-role-list-mapper", "oidc-usermodel-property-mapper" ] + "allowed-protocol-mapper-types" : [ "saml-user-property-mapper", "oidc-usermodel-attribute-mapper", "saml-user-attribute-mapper", "oidc-address-mapper", "oidc-sha256-pairwise-sub-mapper", "oidc-usermodel-property-mapper", "saml-role-list-mapper", "oidc-full-name-mapper" ] } }, { "id" : "730409bc-ce7e-4b64-a870-946aeba9f65b",