Skip to content

Support for Oauth Audiences #7682

@luissantos

Description

@luissantos

Is your feature request related to a problem? Please describe.

For security purposes, Oauth servers require an audience to be provided so that a JWT token can be issued.
If the audience is not provided the server won't issue a standard JWT token.

Describe the solution you'd like
Allow developers to specify the audience in the configuration file and forward the audience while redirecting to the user to oauth provider server.

Describe alternatives you've considered
There are no alternatives. I've validated that this works by intercepting the redirect and injecting the audience parameter.

Additional context
Without the audience its not possible to integrated with services like Auth0.
https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow#authorize-user

Example from the Auth0 documentation:

<a href="https://{yourDomain}/authorize?
  response_type=code&
  client_id={yourClientId}&
  redirect_uri={https://yourApp/callback}&  
  scope=appointments%20contacts&
  audience=appointments:api&
  state=xyzABC123">
  Sign In
</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions