Auth0 Home Blog Docs

Using access token for Authorization

#1

So I’ve read this page top to bottom and am still confused about the separation of concerns between ID and access tokens.

That page clearly states “Access Tokens must never be used for authentication”. My question is: “Can I use access tokens for authentication? :stuck_out_tongue:

I want to pass the access token to my (first-party) backend API. I don’t need any information about them except their User ID. They way you make it sound, I’d need to send both the id_token and access_token to my backend: one to authenticate, one to authorize. Do I need to do that? Or can I rely on the access_token to authenticate the user? In that case, can you take this terribly over-reaching statement out of the docs?

#2

Hey there @colin, you may find the doc below a little more in tune with your desired result when exchanging information with your API. Please let me know if this helps you in your quest and I will continue to investigate the documentation with our team for validity. Thanks!

  1. Your Auth0 Authorization Server responds with an ID Token and Access Token (and optionally, a Refresh Token).
  2. Your application can use the Access Token to call an API to access information about the user.
  3. The API responds with requested data.
#4

I wanted to follow up and see if you had any additional questions on this front @colin? Thanks in advance!

closed #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.