Skip to content

auth: return scope in WWW-Authenticate header.#834

Open
maciej-kisiel wants to merge 2 commits intomainfrom
mkisiel/bearer-test
Open

auth: return scope in WWW-Authenticate header.#834
maciej-kisiel wants to merge 2 commits intomainfrom
mkisiel/bearer-test

Conversation

@maciej-kisiel
Copy link
Contributor

@maciej-kisiel maciej-kisiel requested a review from jba March 4, 2026 12:08
if opts != nil {
var params []string
if opts.ResourceMetadataURL != "" {
params = append(params, "resource_metadata=\""+opts.ResourceMetadataURL+"\"")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is clearer: fmt.Sprintf("resource_metadata=%q", opts....)

and ditto below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, for some reason I mixed it up and thought %q produces single quotes. Will adjust the code.

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.

2 participants