You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I stumbled upon one thing and that is definition of scopes in OpenAPI vs definition of scopes in Keycloak.
I know that there are fine grained permissions, but not sure how to incorporate them if we have 1000+ endpoints.
My basic understanding would be that if I have for example endpoint GET /api/documents which has in OpenAPI security scope doc:r then I can create a scope doc:r in Keycloak and map this scope to some role let's say document-reader. Then if I assign role document-reader to user johndoe, scope should be automatically visible in JWT token.
But I can't find the way how to do this and/or if this is correct approach. I think I have done something like that in old version of keycloak, but seems like things have changed or maybe I have just misconfigured something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I stumbled upon one thing and that is definition of scopes in OpenAPI vs definition of scopes in Keycloak.
I know that there are fine grained permissions, but not sure how to incorporate them if we have 1000+ endpoints.
My basic understanding would be that if I have for example endpoint
GET /api/documentswhich has in OpenAPI security scopedoc:rthen I can create a scopedoc:rin Keycloak and map this scope to some role let's saydocument-reader. Then if I assign roledocument-readerto userjohndoe, scope should be automatically visible in JWT token.But I can't find the way how to do this and/or if this is correct approach. I think I have done something like that in old version of keycloak, but seems like things have changed or maybe I have just misconfigured something.
Can someone bring some light on this?
Thanks
All reactions