Commit 76befe03 authored by bobbyrullo's avatar bobbyrullo

Merge pull request #183 from stongo/issue-135

server: add scope to newLoginURLFromSession
parents 728b64c3 7d0ecf95
...@@ -296,6 +296,9 @@ func newLoginURLFromSession(issuer url.URL, ses *session.Session, register bool, ...@@ -296,6 +296,9 @@ func newLoginURLFromSession(issuer url.URL, ses *session.Session, register bool,
if msgCode != "" { if msgCode != "" {
v.Set("msg_code", msgCode) v.Set("msg_code", msgCode)
} }
if len(ses.Scope) > 0 {
v.Set("scope", strings.Join(ses.Scope, " "))
}
loginURL.RawQuery = v.Encode() loginURL.RawQuery = v.Encode()
return &loginURL return &loginURL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment