fosite icon indicating copy to clipboard operation
fosite copied to clipboard

Support audience parameter for the introspection endpoint

Open mitar opened this issue 10 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

This is a followup to discussion in this issue. I am for now opening an issue to not forget, I might do a PR in the future.

If you are using introspection endpoint to validate tokens (to check if they should be accepted) then you should also pass audience parameter to check that the given token is for expected audience. This solves the problem of one using access token meant for one audience to gain access to another audience (both tokens are valid, just audience is different).

Describe your ideal solution

Introspection endpoint should also accept audience parameter which would force access tokens passed to it to match the expected audience.

Workarounds or alternatives

After calling introspection endpoint, the caller can manually inspect if the audience in the response matches expected audience, but that is error prone.

Version

latest master branch

Additional Context

No response

mitar avatar Mar 01 '25 00:03 mitar