I need to be able to access the Authroization Extension API in my Auth0 rules, and I believe I have to create a non-interactive client, login to generate a token, and use that token to access the API.
I have created a non-interactive client in Auth0, and granted the appropriate permissions for this client to access the auth0-authorization-extension-api
. I then believe I am supposed to generate a bearer token from Auth0, which succeeds for me.
POST https://mydomain.auth0.com/oauth/token
with the client payload information returns my token.
However, when I then attempt to use this token to access the authroization extension api, I get the a 401 Unauthorized message with the error Invalid Token
. This token appears to be valid to me.
What else am I missing here?