-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get List of Roles for App #110
Comments
Dummy request already working: http://localhost:4000/approles/:client_id Now I just need to work on restricting to the roles of the app via |
I've naively tried doing the caching of the Reading: https://moosecode.nl/blog/where-do-i-put-startup-code-in-elixir |
OK. We have a Next we need to cache the list of roles in ETS, going to borrow some code from: Tomorrow. 😴 |
In order to allow custom roles for any App that uses Auth, we need a way of getting the list of roles that are relevant to that App once during application startup. The list should be cached in memory to speed up in-app role checking. Such that a call to
RBAC.has_role(person, "hotel_guest")
dwyl/rbac#2 should take less than a microsecond (zero network latency).Todo
AUTH_API_KEY
to request the list of Roles & Permissions relevant to a given AppJSON
Array
ofObjects
similar todefault_roles.json
which should be decoded/parsed as aList
ofMaps
inElixir
usingJason.decode/2
(which means we will need to add it as a dependency).The text was updated successfully, but these errors were encountered: