mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-13 09:24:07 +08:00
Default PKCE method when missing
Co-authored-by: HFO4 <16058869+HFO4@users.noreply.github.com>
This commit is contained in:
@@ -60,6 +60,9 @@ func (s *GrantService) Get(c *gin.Context) (*GrantResponse, error) {
|
||||
user := inventory.UserFromContext(c)
|
||||
kv := dep.KV()
|
||||
oAuthClient := dep.OAuthClientClient()
|
||||
if s.CodeChallenge != "" && s.CodeChallengeMethod == "" {
|
||||
s.CodeChallengeMethod = "S256"
|
||||
}
|
||||
|
||||
// 1. Get app registration and grant
|
||||
app, err := oAuthClient.GetByGUIDWithGrants(c, s.ClientID, user.ID)
|
||||
|
||||
Reference in New Issue
Block a user