Support the access token via a header in "GET /oauth/v1/access-tokens/:token"

Status: Idea Submitted

We use GET /oauth/v1/access-tokens/:token to get the currently logged in user’s id and email.

It would be great to make this endpoint support access token either as a part of the pathname or as an Authorization header.

The reason headers are preferred is they generally don’t end up exposed in logs or errors. See CWE - CWE-598: Use of HTTP Request With Sensitive Query String (4.20) (this one is about query parameters but TBH pathname has the same issue).

Ideally, it would be great to have a separate user info endpoint. This was standardized under OpenID Connect: https://openid.net/specs/openid-connect-core-1_0.html#UserInfo but most “pure” OAuth2 providers support it. Another option is to support Identity token (ID Tokens - Auth0 Docs).

testing reply