Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsValidToken doesn't work with TJWTCheckableClaim.IssuedAt #41

Closed
Ravaut123 opened this issue May 23, 2016 · 1 comment
Closed

IsValidToken doesn't work with TJWTCheckableClaim.IssuedAt #41

Ravaut123 opened this issue May 23, 2016 · 1 comment

Comments

@Ravaut123
Copy link

Add code to

procedure TMVCJwtAuthenticationMiddleware.OnBeforeRouting
...
lJWT.Claims.Issuer := 'Delphi MVC Framework';
lJWT.Claims.ExpirationTime := Now + OneHour; // todo: customize
lJWT.Claims.NotBefore := Now - OneMinute * 5; // todo: customize
lJWT.Claims.IssuedAt := Now; // Add this line todo: customize
...

@danieleteti
Copy link
Owner

Closed by #a102909

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants