Skip to content

header_to_token: base64 only once#55

Open
hacklschorsch wants to merge 1 commit intocloudflare:mainfrom
LeastAuthority:fix-header-to-token
Open

header_to_token: base64 only once#55
hacklschorsch wants to merge 1 commit intocloudflare:mainfrom
LeastAuthority:fix-header-to-token

Conversation

@hacklschorsch
Copy link
Copy Markdown
Contributor

header_to_token() is a very nice high-level API for turning a WWW-Authenticate header (a Token Request) into an Authorization header (a Token).

Unfortunately, currently it's broken: It encodes the header that fetchToken() returns ready to use (especially already encoded as base64) another time as base64. That is one time too many.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant