bland-finland-95044
06/10/2024, 10:44 PMsparse-father-97864
06/11/2024, 2:16 PMmy_roles
2. I set up a JWT tokenizer where I create a few custom claims in my claims mapper
claims: {
iss: claims.iss,
schema_id: session.identity.schema_id,
email: session.identity.traits.email,
roles: session.identity.metadata_public.my_roles,
}
bland-finland-95044
06/11/2024, 2:38 PMmy_roles
every time we update a user's Ory Permissions... that feels likely to get out of sync or become stale? I'm thinking now that it might be better to cache user permissions at another layer. Maybe nginx in front of the Ory Permission API