Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_mapping_provider support in jwt_config #17807

Closed
col-panic opened this issue Oct 9, 2024 · 3 comments
Closed

user_mapping_provider support in jwt_config #17807

col-panic opened this issue Oct 9, 2024 · 3 comments

Comments

@col-panic
Copy link

Description:

oidc_providers do support the inital mapping of values on user creation via

    user_mapping_provider:
      config:
        localpart_template: "{{ user.preferred_username }}"
        display_name_template: "{{ user.name }}"
        email_template: "{{ user.email }}"

Could this be equally provided for jwt_config? Here the only value
available seems to be subject_claim.

I'm currently working on updating the Java Client to Server library and I found this when working on https://github.com/col-panic/Matrix-ClientServer-API-java/blob/98ef8dc6392306f41757ac14600606fef4160ac8/src/main/java/de/jojii/matrixclientserver/Bot/Client.java#L104

Current config is

jwt_config:
    enabled: true
    issuer: "https://${EE_HOSTNAME}/keycloak/auth/realms/ElexisEnvironment"
    algorithm: RS256
    secret: |
      -----BEGIN PUBLIC KEY-----
      ${REALM_PUBLIC_KEY}
      -----END PUBLIC KEY-----
    subject_claim: "preferred_username"
    audiences:
        - "synapse"
@col-panic
Copy link
Author

#17708 whow - :) same thoughts!

@col-panic
Copy link
Author

Thanks @EnneS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant