mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 03:36:39 +00: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 a new issue