jwt settings code cleanup
This commit is contained in:
parent
27d26ea27c
commit
b776cf13b6
@ -44,7 +44,6 @@ public class JwtSettingsServiceDefault implements JwtSettingsService {
|
||||
|
||||
static final String ADMIN_SETTINGS_JWT_KEY = "jwt";
|
||||
static final String TOKEN_SIGNING_KEY_DEFAULT = "thingsboardDefaultSigningKey";
|
||||
static final String TB_ALLOW_DEFAULT_JWT_SIGNING_KEY = "TB_ALLOW_DEFAULT_JWT_SIGNING_KEY";
|
||||
@Lazy
|
||||
private final AdminSettingsService adminSettingsService;
|
||||
@Lazy
|
||||
|
||||
@ -107,7 +107,7 @@ plugins:
|
||||
# Security parameters
|
||||
security:
|
||||
# JWT Token parameters
|
||||
jwt: # Since 3.5.0 values are persisted to the database during install or upgrade. On Install, the key will be generated randomly if no custom value set.
|
||||
jwt: # Since 3.4.2 values are persisted to the database during install or upgrade. On Install, the key will be generated randomly if no custom value set. You can change it later from Web UI under SYS_ADMIN
|
||||
tokenExpirationTime: "${JWT_TOKEN_EXPIRATION_TIME:9000}" # Number of seconds (2.5 hours)
|
||||
refreshTokenExpTime: "${JWT_REFRESH_TOKEN_EXPIRATION_TIME:604800}" # Number of seconds (1 week).
|
||||
tokenIssuer: "${JWT_TOKEN_ISSUER:thingsboard.io}"
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
config.stopbubbling = true
|
||||
lombok.anyconstructor.addconstructorproperties = true
|
||||
lombok.copyableAnnotations += org.springframework.context.annotation.Lazy
|
||||
lombok.copyableAnnotations += org.springframework.context.annotation.Lazy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user