We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the sample code:
... b, err := builder.Build() if err != nil { panic(fmt.Errorf("failed to build biscuit: %v", err)) } token, err := b.Serialize() if err != nil { panic(fmt.Errorf("failed to serialize biscuit: %v", err)) }
I tried
fmt.Println(string(token))
and
fmt.Println(base64.StdEncoding.EncodeToString(token))
Both output are not accepted by the online token-inspector tool
How do I transform token to a base64-encoded string so that I can share with other easily ? Thanks for the help
token
The text was updated successfully, but these errors were encountered:
Instead of base64.StdEncoding, use base64.URLEncoding which should make the final command look like
base64.StdEncoding
base64.URLEncoding
fmt.Println(base64.URLEncoding.EncodeToString(token))
This made it work
Sorry, something went wrong.
yes, we generally use URL safe base64 encoding. I'm opening biscuit-auth/biscuit#128 to emphasize it
No branches or pull requests
From the sample code:
I tried
and
Both output are not accepted by the online token-inspector tool
How do I transform
token
to a base64-encoded string so that I can share with other easily ?Thanks for the help
The text was updated successfully, but these errors were encountered: