I’m having issues authenticating my backend with the token I receive from Auth0 in my front end client.
Using emberjs-simple-auth-auth0 I correct receive a token and authenticate on the frontend. However using that same token I’m unable to get my backend to accept incoming requests.
I’m using auth0-spring-security-api on my backend application. I think I might have just configured my auth0 dashboard incorrectly?
Looking at the access token returned from the frontend it looks something like
svfyTcAAqHbIdppi_zkJHkldW2jhJKF3 so if I take that and put it into a curl request to the backend
curl -X GET -H "Authorization: Bearer svfyTcAAqHbIdppi_zkJHkldW2jhJKF3" -H "Cache-Control: no-cache" "http://192.168.0.109:39885"
I get a 401 from my backend.
All I’ve done in the dashboard is create a API, which automatically created me a non-interactive test client, so I’ve used that client ID in my frontend.
I get the sense this isn’t the correct client type to use?