Skip to content

Commit

Permalink
Merge pull request cesanta#78 from gauravbhandare/master
Browse files Browse the repository at this point in the history
Making NotBefore value as now-10
  • Loading branch information
rojer committed Mar 22, 2016
2 parents 0324658 + 9dfadba commit cb71892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_server/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (as *AuthServer) CreateToken(ar *authRequest, ares []authzResult) (string,
Issuer: tc.Issuer,
Subject: ar.Account,
Audience: ar.Service,
NotBefore: now - 1,
NotBefore: now - 10,
IssuedAt: now,
Expiration: now + tc.Expiration,
JWTID: fmt.Sprintf("%d", rand.Int63()),
Expand Down

0 comments on commit cb71892

Please sign in to comment.