添加 "bearer " 作为网络令牌前缀的原因是什么?
What is the reason for adding "bearer " as the prefix to your web token?
我看到了执行此操作的教程。但我完全看不出为什么需要为您的 JWT 令牌添加前缀,任何前缀。
Bearer
用于授权令牌,以区别于其他类型的身份验证,例如 Basic
, Digest
, and several others. The Authorization: <type> <credentials>
syntax was first described in the HTTP 1.0 spec, long before the concept of a Bearer
token was introduced in the OAuth 2.0 authorization standard.
我看到了执行此操作的教程。但我完全看不出为什么需要为您的 JWT 令牌添加前缀,任何前缀。
Bearer
用于授权令牌,以区别于其他类型的身份验证,例如 Basic
, Digest
, and several others. The Authorization: <type> <credentials>
syntax was first described in the HTTP 1.0 spec, long before the concept of a Bearer
token was introduced in the OAuth 2.0 authorization standard.