I have noticed the convention is to send a JWT in the header under the field Authorization. The standard is to send the token as such:
Authorization:Bearer [token]
My question is why do I need to put the Bearer part why now just:
Authorization:[token]
When I receive the first request I need to parse every request to get rid of the Bearer when I verify my jwt. What is the point of this?
Authorization: Basic
tools.ietf.org/html/rfc2617#section-2, then promoted further by oauth that introducedAuthorization: Bearer
(and others) tools.ietf.org/html/rfc6749#section-7.1 So it is there to specify what type of authentication credentials is being sent. – zerkmsAuthorization = "Authorization" ":" credentials
so it's up to you on how you construct the credentials part tools.ietf.org/html/rfc2616#section-14.8 – zerkms