Skip to content

Reading of "permissions" claim of access token #82

Answered by frankie567
Pijako asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Pijako, welcome to Fief 👋

The access token I get from my Keycloak

The Fief Python client is designed to work with Fief, not Keycloak 🙃 In a way, we are a "competitor" to Keycloak; and we may not structure our access token the same way as them.

In Fief, we define the permissions claim to list the permissions a user has access to. When you assign a role, the user is granted the associated list of permissions; so it makes sense to check for actual permissions rather than a role. Ref: https://docs.fief.dev/getting-started/access-control/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Pijako
Comment options

Answer selected by frankie567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants