NodeBB / nodebb-plugin-sso-oauth2-multiple

NodeBB Plugin for configuring multiple OAuth2 endpoints for login
BSD 2-Clause "Simplified" License
9 stars 4 forks source link

I am having problems mapping keycloak roles using the plugin #73

Closed Fiser12 closed 2 months ago

Fiser12 commented 3 months ago

Hello sirs!

I achived the integration of the plugin using keycloak but I failed mapping roles in some way, somebody has achive it, maybe using other Auth provider?

Thanks!

Fiser12 commented 2 months ago

The solution it's in the keycloak configuration, it's not a problem in the plugin. You have to map the role properly at Client Scopes > roles > Client scope details > Mapper details and set like this.

It's specially important to set the Token claim name as roles to fix the issue

image