I have a fully working setup with Auth0+Spring Boot+Angular running.
Now I am trying to get some more info from the logged in User in the Backend (Spring Boot).
First I am trying to get the Bearer-Token:
This is working and I am getting a long String seperated by dots as a Result (-> TOKEN).
I am using this String as a Bearer-Token for the next Request.
This could be either this Url: https://XXX.xx.auth0.com/userinfo
with the Header:
Header(“authorization”, "Bearer " + TOKEN)
Both Urls are resulting in unauthorized (Bad audience).
Can somebody please help me!