Skip to content

Use OIDC group information and automatically create user #1029

@iverberk

Description

@iverberk

Feature Category

  • Correctness
  • [X ] User Interface / User Experience
  • Performance
  • Other (please explain)

Describe the problem

We have connected MWDB to Keycloak via OIDC. We currently see two problems with this:

  1. We need to enable user registration on the mwdb-core service otherwise a new user that logs in via OIDC cannot access the application. It seems that a new user needs to be created in MWDB manually first? We would like an automatic user creation when the Keycloak login is successful. Currently the user gets a pop-up asking if he/she wants register but we would like to prevent this question and just create the user.
  2. Our users are connected to groups in Keycloak and we pass this information in the access/id-token. However, it seems that MWDB does nothing with this information and forces us to do manual user/group management in the MWDB interface. Is it possible to read the groups from the ID token and automatically put users in the correct groups in MWDB?

Describe the solution you'd like

Use the ID token information to automatically create users assigned to the correct groups without user/admin intervention.

Describe alternatives you've considered

None, this is the only external authentication option currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:improvementSmall improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions