Skip to content

Commit

Permalink
handler/oauth2: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Jul 9, 2017
1 parent 664d1a6 commit 63f329b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/oauth2/flow_authorize_code_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (c *AuthorizeExplicitGrantHandler) HandleTokenEndpointRequest(ctx context.C
}

// The authorization server MUST verify that the authorization code is valid
// Validation happens
// This needs to happen after store retrieval for the session to be hydrated properly
if err := c.AuthorizeCodeStrategy.ValidateAuthorizeCode(ctx, request, code); err != nil {
return errors.Wrap(errors.WithStack(fosite.ErrInvalidRequest), err.Error())
}
Expand Down

0 comments on commit 63f329b

Please sign in to comment.