p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
https://phasetwo.io
Other
418 stars 72 forks source link

Organization roles with client scope #176

Closed thesardorbroo closed 9 months ago

thesardorbroo commented 9 months ago

Hi, we have organizations client scope, it maps all roles of all organizations into token(JWT). I have a question. Can I map all roles of 1 organization into token? with client scope (scope = {org_id}) or something else?

xgp commented 9 months ago

See the docs on setting an active organization https://github.com/p2-inc/keycloak-orgs/blob/main/docs/active-organization.md