Skip to content

Commit

Permalink
[chore] Enable S256 code challenge (#2224)
Browse files Browse the repository at this point in the history
For some reason we only had plain enabled. This adds S256.
  • Loading branch information
daenney authored Sep 28, 2023
1 parent e93cc7a commit 2a9927d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/oauth/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a9927d

Please sign in to comment.