I have few questions about azp (Authorized Parties) field that exists in the access token generated by https://<TENANT-DOMAIN>/oauth/token.
Why Auth0 adds azp field into the access token? Correct me if I’m wrong, but my understanding of azp is that it’s not part of OAuth claims, but part of OIDC claims.
Would it be save if my web service doesn’t check azp field? And why it is save or not save?
I don’t think azp is generated by default for access tokens. Are you using rules? Maybe one of them is adding it. Can you post a sample access token here?
There is a draft spec for OAuth access tokens that discusses the client_id field:
The client_id field is just the azp field by a different name (the azp field was probably added to the access token before the draft spec was published).
So that is why it is there.
As long as you follow the recommended checks (which do not include client_id or azp) you are doing the right thing.