Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for audience parameter #79

Open
mraible opened this issue Sep 10, 2022 · 2 comments
Open

Add support for audience parameter #79

mraible opened this issue Sep 10, 2022 · 2 comments

Comments

@mraible
Copy link

mraible commented Sep 10, 2022

If added, this site can be used to obtain a JWT-based access token from Auth0. Without it, you get an opaque token.

https://community.auth0.com/t/spring-boot-jwe-not-configured/80106

@nbarbettini
Copy link
Owner

@mraible Can you add an example of a conforming request? I believe this is a custom parameter (not in the OIDC Core spec) that Auth0 uses, is that correct?

@mraible
Copy link
Author

mraible commented Sep 20, 2022

I'm able to get an access token using OIDC Debugger. However, it's not a JWT. It's just an opaque string. Auth0's API does have a "Test" tab you can use to get tokens.

Screen Shot 2022-09-20 at 11 54 03

Once you create a test application, it shows you a cURL command you can use:

token-request

Here it is with replacements for the client ID and client secret:

curl --request POST \
  --url https://dev-06bzs1cu.us.auth0.com/oauth/token \
  --header 'content-type: application/json' \
  --data '{"client_id":"xxx","client_secret":"yyy,"audience":"https://dev-06bzs1cu.us.auth0.com/api/v2/","grant_type":"client_credentials"}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants