Merge pull request #183 from stongo/issue-135
server: add scope to newLoginURLFromSession
This commit is contained in:
commit
76befe03bc
1 changed files with 3 additions and 0 deletions
|
@ -296,6 +296,9 @@ func newLoginURLFromSession(issuer url.URL, ses *session.Session, register bool,
|
|||
if msgCode != "" {
|
||||
v.Set("msg_code", msgCode)
|
||||
}
|
||||
if len(ses.Scope) > 0 {
|
||||
v.Set("scope", strings.Join(ses.Scope, " "))
|
||||
}
|
||||
|
||||
loginURL.RawQuery = v.Encode()
|
||||
return &loginURL
|
||||
|
|
Reference in a new issue