1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-11-28 09:08:44 +02:00

Remove unsupported special characters from the code verifier runes

- Not all special ASCII characters are strictly supported by the spec
This commit is contained in:
Braunson M 2022-12-16 19:57:02 -05:00
parent 0832488af3
commit 311d210ec4

View File

@ -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