I’m trying to generate a token on the server to communicate with our api. We were using /oauth/ro endpoint like this.
response = requests.post(
urllib.parse.urljoin(self.origin, '/oauth/ro'),
json={
'client_id': self.client_id,
'id_token': self.request_token,
'connection': self.connection,
'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer',
'scope': 'openid app_metadata',
'device': 'service',
},
)
I’m trying to move this to /oauth/token endpoint but seems like the access_token i get does not include app_metadata.
response = requests.post(
urllib.parse.urljoin(self.origin, '/oauth/token'),
json={
'client_id': self.client_id,
'client_secret': self.client_secret,
'grant_type': 'client_credentials',
'scope': 'read:users_app_metadata',
'audience': 'audience',
},
)
I enabled non-interactive client for auth0 management api with read:users_app_metadata scope. What am i missing?