Bearer Token
An HTTP authentication scheme in which a token is stored in a frontend application's memory or local storage and explicitly transmitted via the Authorization request header without relying on browser-managed mechanisms. It is commonly used for API authentication and session management in single-page applications.
Core Facts
Timeline (last 90 days)
In typical SCIM deployments, authentication is performed via Bearer Token or OAuth client credentials.
Traditional Bearer Tokens have a weakness: once a token is stolen, any party holding it can impersonate a legitimate client to make requests.
Tokens stored in localStorage can persist after a tab is closed, but are exposed to XSS risks
Tokens carrying impersonation claims retain auditability, as the server always knows the identity of the actual operator
Bearer tokens are typically stored in the frontend application's memory or local storage and explicitly transmitted via the Authorization: Bearer <token> request header
It is recommended to set a shorter expiration time for impersonation tokens and to ensure the administrator's original token is always securely retained on the client side.
Implementing user impersonation under a Bearer Token architecture should be designed around the token itself rather than applying cookie-swap thinking, and solutions that can embed real-operator claims should be preferred.
Under the Bearer Token model, exiting impersonation only requires discarding the impersonation token and switching back to the originally held admin token, making the exit path more secure than the cookie-based approach.
Tokens stored in memory are lost after a page refresh, but are more secure because XSS attacks cannot read them via document.cookie or localStorage
All Facts (11)
Bearer Token is the standard authentication method in the OAuth 2.0 specification, where any request party holding the token is considered a legitimate user.
65%UnverifiedIf an Anthropic API Key is entered into an OpenAI configuration file, the server will return a 401 Unauthorized error.
60%UnverifiedIn typical SCIM deployments, authentication is performed via Bearer Token or OAuth client credentials.
50%UnverifiedTraditional Bearer Tokens have a weakness: once a token is stolen, any party holding it can impersonate a legitimate client to make requests.
50%UnverifiedTokens stored in localStorage can persist after a tab is closed, but are exposed to XSS risks
50%UnverifiedTokens carrying impersonation claims retain auditability, as the server always knows the identity of the actual operator
50%UnverifiedUnder the Bearer Token model, exiting impersonation only requires discarding the impersonation token and switching back to the originally held admin token, making the exit path more secure than the cookie-based approach.
50%UnverifiedIt is recommended to set a shorter expiration time for impersonation tokens and to ensure the administrator's original token is always securely retained on the client side.
50%UnverifiedImplementing user impersonation under a Bearer Token architecture should be designed around the token itself rather than applying cookie-swap thinking, and solutions that can embed real-operator claims should be preferred.
50%UnverifiedTokens stored in memory are lost after a page refresh, but are more secure because XSS attacks cannot read them via document.cookie or localStorage
50%UnverifiedBearer tokens are typically stored in the frontend application's memory or local storage and explicitly transmitted via the Authorization: Bearer <token> request header
50%