Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hello! I am trying to make a custom claim call warpgate_roles that lists the users current roles, how would I go about doing that?

5views
3users
1 minread

why don't you just use "get implicit roles for user"

idk what casdoor is but I assume there's a way to get the user's roles built in

why do you need a 'custom claim'

(I just use casbin)

There is, I wish I could just use the 'Roles' claim. However the application I am trying to use is a pain

image.png

interesting. Idk why a custom claim call would be needed to get a user's roles tho

I'd think there'd be a built-in way of doing it

I don't get it either but they won't change it :/

In Casdoor I can add static custom tokens, I just can't see how to make them dynamic

image.png

1 / 14
Feb 4