Farzad Soltani
09/19/2023, 11:29 AMcheckResources
method:
auxData: {
jwt: {
token,
keySetId: 'default',
},
},
The token comes from request.headers
in my Express app.
Since I'm doing all the decoding business in Cerbos, I was wondering how I was supposed to pass the user's id as the principal's id without decoding the token:
const {results} = await cerbos.checkResources({
principal: {
id: String(user.id),
roles: user.roles,
},
...
Charith (Cerbos)
auxData.jwt
instead of principal.id
.Farzad Soltani
09/19/2023, 11:44 AMCharith (Cerbos)