ArnauA
ZITADEL•2mo ago•
11 replies
Arnau

Append custom claims to PATs/Opaque Tokens on OAuth2 introspection (preuserinfo)

āš™ļøConfigurationšŸ¬Self-hostedšŸ”Authenticationā“QuestionšŸ‘ŸActions
Hello, we have seen the Action V2 for
function:preuserinfo
is executed when introspecting PATs for Service/Machine users, which is good for us.

However, even if we return the
append_claims
array with custom claims in the response, those are not reflected as prinicpal attributes in the result of token introspection (we are using Spring Security).

Is it supported natively that we can add custom claims to PATs upon introspection somehow?
Thanks.
Was this page helpful?