[KongchangAI]
ConceptBearer令牌 / 访问令牌

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.

Timeline (last 90 days)

Sep 29

Traditional Bearer Tokens have a weakness: once a token is stolen, any party holding it can impersonate a legitimate client to make requests.

Unverified50%
Sep 23

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

Unverified50%
Sep 23

Tokens stored in localStorage can persist after a tab is closed, but are exposed to XSS risks

Unverified50%
Sep 23

Tokens carrying impersonation claims retain auditability, as the server always knows the identity of the actual operator

Unverified50%
Sep 23

Bearer tokens are typically stored in the frontend application's memory or local storage and explicitly transmitted via the Authorization: Bearer <token> request header

Unverified50%
Sep 23

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.

Unverified50%
Sep 23

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.

Unverified50%
Sep 23

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.

Unverified50%

All Facts (9)

Unverified

Traditional Bearer Tokens have a weakness: once a token is stolen, any party holding it can impersonate a legitimate client to make requests.

50%
Unverified

Bearer tokens are typically stored in the frontend application's memory or local storage and explicitly transmitted via the Authorization: Bearer <token> request header

50%
Unverified

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

50%
Unverified

Tokens stored in localStorage can persist after a tab is closed, but are exposed to XSS risks

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

Tokens carrying impersonation claims retain auditability, as the server always knows the identity of the actual operator

50%
Unverified

Bearer Token是OAuth 2.0规范中的标准认证方式,任何持有该令牌的请求方都被视为合法用户

50%

Source Articles