We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d7bc6 commit 6a2b2ecCopy full SHA for 6a2b2ec
api/auth.go
@@ -5,15 +5,18 @@ import (
5
"net/http"
6
7
jwt "github.com/dgrijalva/jwt-go"
8
+ "github.com/sirupsen/logrus"
9
)
10
11
// requireAuthentication checks incoming requests for tokens presented using the Authorization header
12
func (a *API) requireAuthentication(w http.ResponseWriter, r *http.Request) (context.Context, error) {
13
+ logrus.Info("Getting auth token")
14
token, err := a.extractBearerToken(w, r)
15
if err != nil {
16
return nil, err
17
}
18
19
+ logrus.Infof("Parsing JWT claims: %v", token)
20
return a.parseJWTClaims(token, r)
21
22
0 commit comments