authhandler: Address comments for PKCE

This commit is contained in:
Andy Zhao
2022-06-09 11:22:20 -07:00
parent 0d1849c457
commit c1fddd28bc
2 changed files with 20 additions and 19 deletions

View File

@@ -129,9 +129,9 @@ func TestTokenExchangeWithPKCE_Success(t *testing.T) {
},
}
pkce := PKCEParams{
CodeChallenge: "codeChallenge",
CodeChallengeMethod: "plain",
CodeVerifier: "codeChallenge",
Challenge: "codeChallenge",
ChallengeMethod: "plain",
Verifier: "codeChallenge",
}
tok, err := TokenSourceWithPKCE(context.Background(), conf, "testState", authhandler, &pkce).Token()