Skip to content

Commit

Permalink
vendor: Bump fosite to 0.24.0 (#1062)
Browse files Browse the repository at this point in the history
Signed-off-by: Prateek Malhotra <someone1@gmail.com>
  • Loading branch information
someone1 authored and aeneasr committed Sep 28, 2018
1 parent acea751 commit 2ec8f81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

[[constraint]]
name = "github.com/ory/fosite"
version = "0.23.0"
version = "0.24.0"

[[constraint]]
name = "github.com/ory/graceful"
Expand Down
5 changes: 3 additions & 2 deletions consent/strategy_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ func (s *DefaultStrategy) obfuscateSubjectIdentifier(subject string, req fosite.
}

func (s *DefaultStrategy) verifyAuthentication(w http.ResponseWriter, r *http.Request, req fosite.AuthorizeRequester, verifier string) (*HandledAuthenticationRequest, error) {
session, err := s.M.VerifyAndInvalidateAuthenticationRequest(r.Context(), verifier)
ctx := r.Context()
session, err := s.M.VerifyAndInvalidateAuthenticationRequest(ctx, verifier)
if errors.Cause(err) == pkg.ErrNotFound {
return nil, errors.WithStack(fosite.ErrAccessDenied.WithDebug("The login verifier has already been used, has not been granted, or is invalid."))
} else if err != nil {
Expand Down Expand Up @@ -348,7 +349,7 @@ func (s *DefaultStrategy) verifyAuthentication(w http.ResponseWriter, r *http.Re
return nil, err
}

if err := s.OpenIDConnectRequestValidator.ValidatePrompt(&fosite.AuthorizeRequest{
if err := s.OpenIDConnectRequestValidator.ValidatePrompt(ctx, &fosite.AuthorizeRequest{
ResponseTypes: req.GetResponseTypes(),
RedirectURI: req.GetRedirectURI(),
State: req.GetState(),
Expand Down

0 comments on commit 2ec8f81

Please sign in to comment.