From 8693c9a53ba13cbde94820f757e95a7e1a7877c3 Mon Sep 17 00:00:00 2001 From: Leandro Lafin Date: Wed, 10 Jul 2024 17:58:34 -0300 Subject: [PATCH] Remove unsupported special characters from the code verifier runes --- pkg/encryption/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/encryption/utils.go b/pkg/encryption/utils.go index 67850e1c..4ae5cde6 100644 --- a/pkg/encryption/utils.go +++ b/pkg/encryption/utils.go @@ -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