This commit is contained in:
Wenkai Yin 2016-04-29 17:46:00 +08:00
parent 0f0bc86ade
commit f2a180e617

View File

@ -87,10 +87,11 @@ func (t *tokenHandler) AuthorizeRequest(req *http.Request, params map[string]str
for _, scope := range scopes {
scopeStrs = append(scopeStrs, scope.string())
}
token, expiresIn, issuedAt, err := t.tg(params["realm"], params["service"], scopeStrs)
to, expiresIn, issuedAt, err := t.tg(params["realm"], params["service"], scopeStrs)
if err != nil {
return err
}
token = to
if !hasFrom {
t.cache = token