Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Bad Audience while making Auth0 /user/user_id api call

I am having a use case to modify user metadata using Nodejs. I couldn't find any proper documentation on how to do it. So, I thought of using the rest api for modifying the user data. I created an API from the console and added audience as "http://localhost:8080", gave authorization to my existing clients and gave "update:user", "read:user" scopes. I am able to create access_token successfully but I am not able to make the API call to read/update the user data. It's showing "Bad audience". Kindly throw some light on this error (couldn't find proper documentation on this issue).

like image 874
Sreeraj Krishnan Avatar asked Mar 01 '17 17:03

Sreeraj Krishnan


1 Answers

You have to use 'Auth0 Management API' from the APIs list. If you create your own API it won't work.

like image 172
Xzaara Avatar answered Sep 24 '22 14:09

Xzaara