Skip to content

Commit

Permalink
Allow unmanaged attributes in KC for local dev (#4106)
Browse files Browse the repository at this point in the history
Fix #4084
  • Loading branch information
eleftherias authored Aug 8, 2024
1 parent 2646d77 commit 7ac7423
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions identity/config/stacklok.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ users:
# add-roles -r stacklok --uusername service-account-minder-server --cclientid realm-management --rolename manage-users
- manage-users

# Allow unmanaged attributes for gh_id and gh_login
components:
org.keycloak.userprofile.UserProfileProvider:
- providerId: "declarative-user-profile"
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}],"groups":[{"name":"user-metadata","displayHeader":"User metadata","displayDescription":"Attributes, which refer to user metadata"}],"unmanagedAttributePolicy":"ENABLED"}
authenticationFlows:
- alias: "browser"
description: "browser based authentication"
Expand Down

0 comments on commit 7ac7423

Please sign in to comment.