mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 04:12:25 -05: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…
	
	Add table
		Add a link
		
	
		Reference in a new issue