Integrates Spring session using Redis as session store, with JWT.
It is created to easily be used in combination with auth0.
Gradle
compile('com.github.session.jwt:spring-session-jwt:2.0.1')
repositories {
maven {
url "http://dl.bintray.com/thomasbem/maven"
}
}
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.
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 |