Skip to content

Commit ac571fa

Browse files
eestgopherbot
authored andcommitted
oauth2: fix docs for Config.DeviceAuth
Config.DeviceAccess should be Config.DeviceAuth when using GenerateVerifier() or S256ChallengeOption() Change-Id: Ie21a808387f731d270ae54ea1705de3e786cad7f GitHub-Last-Rev: 2d6b4fd GitHub-Pull-Request: #763 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/636216 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Jorropo <jorropo.pgm@gmail.com> Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
1 parent 314ee5b commit ac571fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkce.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
//
2222
// A fresh verifier should be generated for each authorization.
2323
// S256ChallengeOption(verifier) should then be passed to Config.AuthCodeURL
24-
// (or Config.DeviceAccess) and VerifierOption(verifier) to Config.Exchange
24+
// (or Config.DeviceAuth) and VerifierOption(verifier) to Config.Exchange
2525
// (or Config.DeviceAccessToken).
2626
func GenerateVerifier() string {
2727
// "RECOMMENDED that the output of a suitable random number generator be
@@ -51,7 +51,7 @@ func S256ChallengeFromVerifier(verifier string) string {
5151
}
5252

5353
// S256ChallengeOption derives a PKCE code challenge derived from verifier with
54-
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAccess
54+
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAuth
5555
// only.
5656
func S256ChallengeOption(verifier string) AuthCodeOption {
5757
return challengeOption{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy