I was able to follow this tutorial here: https://auth0.com/docs/quickstart/backend/java-spring-security5/01-authorization
I now would like to show some more information on the End-Point:
@GetMapping(value = "/private-scoped")
For example I would like to display some information from the access_token as well:
"All good. You can see this because you are Authenticated with a Token granted the ‘read:messages’ scope. Your sub is: “auth0|5dd02blablabla” and the iss is:“https://dev-asdf.auth0.com/”
I could not find examples on how to achieve this…
My end-goal would be to store some entries in my db with user-identifing information - and I thought I can use this sub id for that.
Thanks for your help!