Custom data in Identity ? #1262
plaeremans
started this conversation in
Ideas
Replies: 1 comment
-
|
Try having a look here https://robyn.tech/documentation/en/example_app/authentication-middlewares |
Beta Was this translation helpful? Give feedback.
0 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,
In our app. we receive a token via a cookie that it sets somewhere else, this token we can use to get user information out of a central database.
Therefore I would like to add the user as an object to the Identity object.
This would allow us to in a request handler write something like this :
user = request.identity.claims['user']
if user.has_role['editor']:
....
Or do thing like email = request.identity.claims['user'].email
Beta Was this translation helpful? Give feedback.
All reactions