Skip to content

Commit

Permalink
Remove unsupported special characters from the code verifier runes
Browse files Browse the repository at this point in the history
- Not all special ASCII characters are strictly supported by the spec
  • Loading branch information
braunsonm committed Dec 17, 2022
1 parent 0832488 commit 311d210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/encryption/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
const (
CodeChallengeMethodPlain = "plain"
CodeChallengeMethodS256 = "S256"
asciiCharset = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
asciiCharset = "-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
)

// SecretBytes attempts to base64 decode the secret, if that fails it treats the secret as binary
Expand Down

0 comments on commit 311d210

Please sign in to comment.