问题
In context of jwt tokens the word bearer ist used. I cannot find a lot about bearer on Google. I was wondering where the terms comes from and what it stand for? And why is it prefixed?
回答1:
why is it prefixed?
Because otherwise it would just be a bunch of random characters with no context whatsoever, other than knowing that it's some info for some type of authorization.
what it stand for?
That the one who bears the token has the authority to do whatever the token allows
where the terms comes from
Hopefully Lord of The Rings (https://en.wikipedia.org/wiki/One_Ring#Ring-bearers) but I doubt it ;) It's a standard English-language word
回答2:
A "bearer" is simply "a person or thing that carries, upholds, or brings", according to dictionary.com. So, in the context of JWT (or SAML, etc.) tokens, the "bearer" is simply the person or entity that presents the token to the server or resource.
来源:https://stackoverflow.com/questions/35944455/what-does-bearer-stand-for