Compare commits

...

3 Commits

Author SHA1 Message Date
Maxim Lebedev d464e2ee38
Merge branch 'master' into develop
continuous-integration/drone/push Build is passing Details
2022-06-10 15:00:10 +05:00
Maxim Lebedev aee8a4e8f0
Merge branch 'hotfix/scope'
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone Build was killed Details
2022-06-10 15:00:10 +05:00
Maxim Lebedev a3526eade6
🐛 Allow empty scope parameter in authorization request 2022-06-10 15:00:03 +05:00
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ type (
// value, the authorization server MUST NOT issue an access
// token for this authorization code. Only the user's profile
// URL may be returned without any scope requested.
Scope domain.Scopes `form:"scope"`
Scope domain.Scopes `form:"scope,omitempty"`
// The URL that the user entered.
Me *domain.Me `form:"me"`
@ -64,7 +64,7 @@ type (
RedirectURI *domain.URL `form:"redirect_uri"`
CodeChallengeMethod domain.CodeChallengeMethod `form:"code_challenge_method"`
ResponseType domain.ResponseType `form:"response_type"`
Scope domain.Scopes `form:"scope[]"`
Scope domain.Scopes `form:"scope[],omitempty"`
Authorize string `form:"authorize"`
CodeChallenge string `form:"code_challenge"`
State string `form:"state"`