Skip to content
Snippets Groups Projects
Commit 0984d1d5 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

fix - checking grant_type

parent a301c94d
Branches
No related tags found
2 merge requests!5Grdf adict,!4Grdf adict
Pipeline #7480 failed
...@@ -389,10 +389,9 @@ func main() { ...@@ -389,10 +389,9 @@ func main() {
data.Set("client_id", clientId) data.Set("client_id", clientId)
data.Set("client_secret", clientSecret) data.Set("client_secret", clientSecret)
data.Set("grant_type", grantType) data.Set("grant_type", grantType)
if code != "" { if grantType == "authorization_code" {
data.Set("code", code) data.Set("code", code)
} } else {
if scope != "" {
data.Set("scope", scope) data.Set("scope", scope)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment