Skip to content

Support audience parameter for the introspection endpoint #845

@mitar

Description

@mitar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions