git.iko.soy/typeable/oauth2-proxy
on master help sign in
Remove unsupported special characters from the code verifier runes

- Not all special ASCII characters are strictly supported by the spec

commit311d210ec4769e918ed7b556d7ac8e2d05295dc8 authorBraunson M <5280764+braunsonm@users.noreply.github.com> dateFri 16 Dec 2022, 19:57 (4 years ago) parent0832488
1 file changed+1−1
pkg/encryption/utils.go+1−1
pkg/encryption/utils.go+1−1
@@ -17,7 +17,7 @@ import (
1717const (
1818 CodeChallengeMethodPlain = "plain"
1919 CodeChallengeMethodS256 = "S256"
20− asciiCharset = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
20+ asciiCharset = "-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
2121)
2222
2323// SecretBytes attempts to base64 decode the secret, if that fails it treats the secret as binary