mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-12-27 08:43:29 +01:00
[chore] Enable S256 code challenge (#2224)
For some reason we only had plain enabled. This adds S256.
This commit is contained in:
parent
e93cc7a9a8
commit
2a9927dfdc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user