Skip to content

Commit

Permalink
Merge pull request #156 from denouche/fix/outputScope
Browse files Browse the repository at this point in the history
fix: use AccessData scope instead of AccessRequest scope
  • Loading branch information
RangelReale authored Jul 7, 2017
2 parents 1c1df84 + 07e51e8 commit 2f5f767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions access.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ func (s *Server) FinishAccessRequest(w *Response, r *http.Request, ar *AccessReq
if ret.RefreshToken != "" {
w.Output["refresh_token"] = ret.RefreshToken
}
if ar.Scope != "" {
w.Output["scope"] = ar.Scope
if ret.Scope != "" {
w.Output["scope"] = ret.Scope
}
} else {
w.SetError(E_ACCESS_DENIED, "")
Expand Down

0 comments on commit 2f5f767

Please sign in to comment.