Skip to content

HOMEBREW_DOCKER_REGISTRY_TOKEN usage #5171

Answered by Bo98
azatoth asked this question in Everyday usage
Discussion options

You must be logged in to vote

HOMEBREW_DOCKER_REGISTRY_TOKEN is basically just a straight passthrough to Authorization: Bearer $HOMEBREW_DOCKER_REGISTRY_TOKEN.

How Bearer tokens are encoded is not actually defined, at least on OAuth level. OAuth RFC6750 §2.1 doesn't actually mention it needs to be Base64 encoded and the example mF_9.B5f-4.1JqM doesn't decode to anything meaningful in base64. It makes uses of b64token in its syntax but that's because it's borrowed from a HTTP/1.1 draft that had the same name but clarifies it to have the description:

The "b64token" syntax allows the 66 unreserved URI characters ([RFC3986]), plus a few others, so that it can hold a base64, base64url (URL and filename safe alphabet), bas…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@azatoth
Comment options

@azatoth
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by azatoth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants