Closed AB-Kent closed 4 years ago
To authorize an app to make API calls against a remote server, the authorization request should include an audience parameter. https://auth0.com/docs/flows/guides/auth-code/call-api-auth-code#example-authorization-url
audience
To do this, the authorize parameter must be added to the query_extra parameter of the httr::oauth2.0_authorize_url call in auth0::auth0_ui.
authorize
query_extra
httr::oauth2.0_authorize_url
auth0::auth0_ui
Could an audience parameter be added to _auth0.yml, either directly or in a query_extra list, and passed to the oauth2.0_authorize_url call?
_auth0.yml
oauth2.0_authorize_url
See the above commit for a possible implementation.
HI @AB-Kent, sorry for the late response. Thank you so much for this, and I think that your solution works well. Would you mind to make a PR?
To authorize an app to make API calls against a remote server, the authorization request should include an
audience
parameter.https://auth0.com/docs/flows/guides/auth-code/call-api-auth-code#example-authorization-url
To do this, the
authorize
parameter must be added to thequery_extra
parameter of thehttr::oauth2.0_authorize_url
call inauth0::auth0_ui
.Could an
audience
parameter be added to_auth0.yml
, either directly or in aquery_extra
list, and passed to theoauth2.0_authorize_url
call?