d3473r / jitsi-keycloak

Login to jitsi with keycloak https://github.com/d3473r/jitsi-keycloak/pkgs/container/jitsi-keycloak
https://github.com/d3473r/jitsi-keycloak
MIT License
54 stars 23 forks source link

Add Avatar URL to JWT #33

Closed Lumrenion closed 3 years ago

Lumrenion commented 3 years ago

I like how tihs container just works! Would it be possible to include the URL of an avatar image of keycloak users to the JWT? JWT should be able to include such a URL and Jitsi seems to be able to handle that "avatar" parameter: https://community.jitsi.org/t/setting-avatar-using-jwt-token/92076

In Keycloak, the corresponding property can be added with a mapper, in the mappers tab of the client.

d3473r commented 3 years ago

Good idea 👍 You can test it with docker pull d3473r/jitsi-keycloak:develop until i merge it into main We don't even need a mapper as i am reading the user profile anyway, just add the avatar custom attribute to a user. The avatar should also be displayed in the app bar in jitsi-keycloak:

bar
Lumrenion commented 3 years ago

Thank you a lot. I will probably test this out tomorrow and give you feedback then! 🙂

Lumrenion commented 3 years ago

It works like a charm 😊

d3473r commented 3 years ago

Perfekt 👍, i merged the changes into main, so the feature will also be available in the latest tag. I am using this feature also for myself now :)