Skip to content

Conversation

@wlhee
Copy link
Contributor

@wlhee wlhee commented Mar 8, 2019

This would help add extra claim for certain 2-leg JWT exchange.

For example, Google service account key can be used to generate an OIDC token, but Google TokenURL requires "target_audience" claims set.

See this example usage:
https://gist.github.com/wlhee/64bc518190053e2122ca1909c2977c67#file-exmaple-go-L29

@gopherbot
Copy link
Contributor

This PR (HEAD: 8baca54) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@bradfitz bradfitz changed the title Support PrivateClaims in jwt.Config jwt: support PrivateClaims in Config Mar 8, 2019
@gopherbot
Copy link
Contributor

Message from Brad Fitzpatrick:

Patch Set 1:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Gobot Gobot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
Within the next week or so, a maintainer will review your change and provide
feedback. See https://golang.org/doc/contribute.html#review for more info and
tips to get your patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.

During May-July and Nov-Jan the Go project is in a code freeze, during which
little code gets reviewed or merged. If a reviewer responds with a comment like
R=go1.11, it means that this CL will be reviewed as part of the next development
cycle. See https://golang.org/s/release for more details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: 339f364) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

This PR (HEAD: b33c8d1) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Wenlei He:

Patch Set 4:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@marwan-at-work
Copy link

Any luck here? Thanks!

@gopherbot
Copy link
Contributor

Message from Brad Fitzpatrick:

Patch Set 4:

(4 comments)

Sorry, I don't know much about this subject matter.

I can only review documentation & tests.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Brad Fitzpatrick:

Patch Set 4: Run-TryBot+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Gobot Gobot:

Patch Set 4:

TryBots beginning. Status page: https://farmer.golang.org/try?commit=e49cf9ad


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Gobot Gobot:

Patch Set 4: TryBot-Result+1

TryBots are happy.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: a5a809a) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@wlhee
Copy link
Contributor Author

wlhee commented Apr 14, 2019

PR updated.

@marwan-at-work
Copy link

@wlhee any luck with this PR? Thanks

@wlhee
Copy link
Contributor Author

wlhee commented May 16, 2019 via email

@gopherbot
Copy link
Contributor

Message from Brad Fitzpatrick:

Patch Set 5: Code-Review+1

(4 comments)

I'll trust you on the subject matter, so this is fine after I you fix up this last round on the docs.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: ac8ecd8) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

This PR (HEAD: 7a6e247) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/166220 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Wenlei He:

Patch Set 7:

(4 comments)

Patch Set 5: Code-Review+1

(4 comments)

I'll trust you on the subject matter, so this is fine after I you fix up this last round on the docs.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Brad Fitzpatrick:

Patch Set 7: Run-TryBot+1 Code-Review+2


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Gobot Gobot:

Patch Set 7:

TryBots beginning. Status page: https://farmer.golang.org/try?commit=329f336d


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Gobot Gobot:

Patch Set 7: TryBot-Result+1

TryBots are happy.


Please don’t reply on this GitHub thread. Visit golang.org/cl/166220.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request May 17, 2019
This would help add extra claim for certain 2-leg JWT exchange.

For example, Google service account key can be used to generate an OIDC token, but Google TokenURL requires "target_audience" claims set.

See this example usage:
https://gist.github.com/wlhee/64bc518190053e2122ca1909c2977c67#file-exmaple-go-L29

Change-Id: Ic10b006e45a34210634c5a76261a7e3706066965
GitHub-Last-Rev: 7a6e247
GitHub-Pull-Request: #374
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/166220
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
@gopherbot
Copy link
Contributor

This PR is being closed because golang.org/cl/166220 has been merged.

@gopherbot gopherbot closed this May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants