FusionAuth / nodebb-plugin-fusionauth-oidc

NodeBB Plugin that allows users to login/register via any configured OAuth provider.
https://fusionauth.io
BSD 2-Clause "Simplified" License
9 stars 10 forks source link

Map roles out of the Userinfo endpoint #2

Closed robotdan closed 4 years ago

robotdan commented 4 years ago

To map roles from the OpenID Connect Userinfo repsonse, we will need to add a configuration for the roles claim.

So we can default to roles and this will mean we extract the value from the roles claim and if it is an array , it is multiple roles, or if it is a single value it is a single role.

This should be an optional configuration.

Checkbox to enable role mapping, default to roles, and we can support an array or a string.

[ ] Enable role mapping
     Mapping claim ___roles__________