I'm curious about the Fosite decision to encode `t...
# general
g
I'm curious about the Fosite decision to encode
token_type
as
bearer
rather than
Bearer
. I believe the responsible line of code is here 1. Is Ory strongly opinionated about this being
bearer
instead of
Bearer
? 2. I know the spec indicates
token_type
here should be treated as case-insensitive, but the reality is that many libraries simply concatenate the
token_type
value into the
Authorization
header, resulting in an out-of-spec
Authorization: bearer foo
value. Would Ory be open to a PR to update this to
Bearer
to work better with these (badly behaving) libraries?
I definitely don't think ory/fosite is in the wrong here; it's following the spec -- just curious if these types of PRs would be accepted, to help deal with poorly-behaving libraries.