Skip to content

Integration of Spring Sessions, JWT and Auth0

Notifications You must be signed in to change notification settings

mimozell/spring-session-jwt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Session JWT

Build Status

Integrates Spring session using Redis as session store, with JWT.
It is created to easily be used in combination with auth0.

Installation

Gradle

compile('com.github.session.jwt:spring-session-jwt:2.0.1')
repositories {
    maven {
        url  "http://dl.bintray.com/thomasbem/maven"
    }
}

Usage

When the spring.redis.host property is empty, a local redis instance is configured and started with localhost and port 6379. See the class LocalRedisConfig for more detailed information.

Configuration

Key Description Default value
basic-auth.username Basic authentication header username
basic-auth.password Basic authentication header password
jwt-secret Secret used to verify JWT (from auth0)
jwt-session-key The key used to store the jwt in the session jwt
cookie-domain The domain set for the generated cookies
cookie-max-age The max age in seconds? for the cookie 36000
jwt-issuer The issuer of the JWT used to validate

About

Integration of Spring Sessions, JWT and Auth0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 64.2%
  • Groovy 35.8%