Skip to content

Commit

Permalink
Merge pull request #183 from stongo/issue-135
Browse files Browse the repository at this point in the history
server: add scope to newLoginURLFromSession
  • Loading branch information
bobbyrullo committed Nov 18, 2015
2 parents 728b64c + 7d0ecf9 commit 76befe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76befe0

Please sign in to comment.