v4 api: How to differentiate between OAuth Tokens and Private/Personal Access tokens

GitLab treats OAuth tokens and private/personal access tokens differently. OAuth tokens must be presented as an Authorization header in the request, whereas private/personal access tokens must be presented as a PRIVATE-TOKEN header.

Until recently, it would work if we sent both headers with the same value. Do we have some way to differentiate between both the tokens?

Edited Jul 30, 2019 by Rémy Coutable
Assignee Loading
Time tracking Loading