I took this project as starting point: https://github.com/auth0-samples/auth0-python-web-app
According to https://auth0.com/docs/tokens/access-token, I am supposed to get a JWT if I set the audience to an URL pointing to a custom API. This is exactly what I have done, but still I only get an opaque Access Token, as if the audience would still point to abc.eu.auth0.com/userinfo
I wonder, if I need to do something else to get the JWT?
I have already tried to add "access_token_params":
auth0 = oauth.remote_app(
'auth0',
consumer_key=AUTH0_CLIENT_ID,
consumer_secret=AUTH0_CLIENT_SECRET,
access_token_params={
'scope': 'openid profile',
'audience': AUTH0_AUDIENCE
},
request_token_params={
'scope': 'openid profile',
'audience': AUTH0_AUDIENCE
},
base_url='https://%s' % AUTH0_DOMAIN,
access_token_method='POST',
access_token_url='/oauth/token',
authorize_url='/authorize',
)
Sadly, no success. I would be glad if you could give me hints what I might have missed.