Replies: 1 comment 2 replies
-
|
Hi @macik1423, this endpoint should accept a uniqueId and response with permission names. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've implemented flexible authorization according to [@JSON Taylor] (https://github.com/jasontaylordev) presented in this video.
I have only 32 flags because it is enum limitations for TS. My approach is that I have enum permissions in my backend and send permissions as int in JWT token to client. From the client side I have also the same enum permissions and parse this permissions (int) to TS enum. So I can check is user can do something in my application. If I want to implement InfiniteEnumFlags in my app how can I read storing flag id? Am I right that I should send string in JWT permission property (from ToUniqueId method) and read this value in my client but how can client know what this flag means (UniqueId)?
Beta Was this translation helpful? Give feedback.
All reactions