Is using Authorization : Bearer some_token an spec violation if authorization schema has…
- User
Is using
Authorization : Bearer some_tokenan spec violation if authorization schema has nothing to do with OAuth2 and is using simple, static api keys? Assistant
Using
Authorization: Bearer some_tokenis not necessarily an OAuth2 spec violation, even if your authorization scheme has nothing to do with OAuth2 and is using simple, static API keys.Here's why:
-
The
Bearerscheme is not exclusive to OAuth2: Although theBearerauthentication scheme is often associated with OAuth2, it is actually defined in RFC 6750, which is a separate specification that can be used independently of OAuth2. The scheme is a generic authentication scheme that indicates the client should authenticate with a bearer token.
-