diff options
author | 2023-09-28 11:21:19 +0200 | |
---|---|---|
committer | 2023-09-28 11:21:19 +0200 | |
commit | 2a9927dfdcca5df6d021ae84bc232e94a4f65f48 (patch) | |
tree | 72f493c00537eacddc12ee32a5c59692b791a6e2 | |
parent | [chore]: Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc... (diff) | |
download | gotosocial-2a9927dfdcca5df6d021ae84bc232e94a4f65f48.tar.xz |
[chore] Enable S256 code challenge (#2224)
For some reason we only had plain enabled. This adds S256.
-rw-r--r-- | internal/oauth/server.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/oauth/server.go b/internal/oauth/server.go index e4376d864..97e6812c5 100644 --- a/internal/oauth/server.go +++ b/internal/oauth/server.go @@ -99,7 +99,10 @@ func New(ctx context.Context, database db.Basic) Server { oauth2.AuthorizationCode, oauth2.ClientCredentials, }, - AllowedCodeChallengeMethods: []oauth2.CodeChallengeMethod{oauth2.CodeChallengePlain}, + AllowedCodeChallengeMethods: []oauth2.CodeChallengeMethod{ + oauth2.CodeChallengePlain, + oauth2.CodeChallengeS256, + }, } srv := server.NewServer(sc, manager) |