mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +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
1 changed files with 4 additions and 1 deletions
|
@ -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