Skip to content

How to expire JSON Web Token (JWT) manually, without storing it.

Notifications You must be signed in to change notification settings

himadieievsv/expire-jwt-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a sample application, created in order to demonstrate how we can expire JWT manually without storing it.

Token invalidation way:

Using random salt per user, so we can change that salt on logout and invalidate all tokens issued with that salt.

Look here for start:

  • com.jwtdemo.application.service.JwtService - here api access token is issued and validated.
  • com.jwtdemo.application.auth.DemoAuthenticationProvider - authorization with JWT token and check salt.

About

How to expire JSON Web Token (JWT) manually, without storing it.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages