3 ms·
Bearer indicates the type of credential being supplied in the Authorization header. Bearer tokens are a type of credential, introduced in RFC6750 [0]. Essential
by fanieldanara 4y ago
Bearer indicates the type of credential being supplied in the Authorization header. Bearer tokens are a type of credential, introduced in RFC6750 [0]. Essentially the OpenAI api key you’re using is a form of bearer token, and that’s why the Bearer type should be included there.
Other authentication methods (like username/password or “Basic”) use the Authorization header too, but specify “Authorization: Basic <base64 encoded credentials>”.
[0] https://www.rfc-editor.org/rfc/rfc6750 https://www.rfc-editor.org/rfc/rfc6750
- pbreit 4y agoDoes it mostly just mean that, for non-JWT-style tokens, the same string essentially serves as both a "username" and a "password"?