Skip to content

Commit

Permalink
unstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jun 29, 2016
1 parent 3ac3a79 commit bbe420d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler/core/explicit/explicit_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func (c *AuthorizeExplicitGrantTypeHandler) PopulateTokenEndpointResponse(ctx co
return errors.Wrap(fosite.ErrServerError, err.Error())
}

for _, scope := range authorizeRequest.GetGrantedScopes() {
requester.GrantScope(scope)
}

var refresh, refreshSignature string
if authorizeRequest.GetGrantedScopes().Has("offline") {
refresh, refreshSignature, err = c.RefreshTokenStrategy.GenerateRefreshToken(ctx, requester)
Expand Down

0 comments on commit bbe420d

Please sign in to comment.