Skip to content

Commit

Permalink
validator: removed unnecessary logging (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi authored and arekkas committed Sep 5, 2016
1 parent 7fb850e commit cb328ca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions handler/oauth2/validator.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package oauth2

import (
"fmt"

"github.com/ory-am/fosite"
"github.com/pkg/errors"
"golang.org/x/net/context"
Expand Down Expand Up @@ -31,10 +29,8 @@ func (c *CoreValidator) validateAccessToken(ctx context.Context, token string, a
sig := c.CoreStrategy.AccessTokenSignature(token)
or, err := c.CoreStorage.GetAccessTokenSession(ctx, sig, accessRequest.GetSession())
if err != nil {
fmt.Printf("%s", err)
return errors.Wrap(fosite.ErrRequestUnauthorized, err.Error())
} else if err := c.CoreStrategy.ValidateAccessToken(ctx, or, token); err != nil {
fmt.Printf("%s", err)
return errors.Wrap(fosite.ErrRequestUnauthorized, err.Error())
}

Expand Down

0 comments on commit cb328ca

Please sign in to comment.