Browse Source

server: add scope to newLoginURLFromSession

need to make sure the scope is present otherwise will be considered an invalid request

fixes #135
pull/183/head
Marcus Stong 10 years ago
parent
commit
7d0ecf9532
  1. 3
      server/register.go

3
server/register.go

@ -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

Loading…
Cancel
Save