Skip to content

Commit 315d054

Browse files
committed
Remove padding on example client PKCE
Removes padding so the client example can be used against oauth servers that require padding to be removed.
1 parent 00133fa commit 315d054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,5 @@ func main() {
137137

138138
func genCodeChallengeS256(s string) string {
139139
s256 := sha256.Sum256([]byte(s))
140-
return base64.URLEncoding.EncodeToString(s256[:])
140+
return base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(s256[:])
141141
}

0 commit comments

Comments
 (0)