io.rocketbase.commons.config.AuthProperties Maven / Gradle / Ivy
package io.rocketbase.commons.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import javax.validation.constraints.NotEmpty;
@Data
@ConfigurationProperties(prefix = "auth")
public class AuthProperties {
@NotEmpty
private String roleAdmin = "ADMIN";
@NotEmpty
private String roleUser = "USER";
@NotEmpty
private String tokenSecret = "E*iqzFiW#kSmAo8rO^V8%DRlQ#1f&B$i";
/**
* cache time in minutes
* 0 means disabled
*/
private int userCacheTime = 30;
/**
* full qualified url to a custom UI that proceed the verification
* ?verification=VALUE will get append
*/
private String verificationUrl = null;
/**
* full qualified url to a custom UI that proceed the password reset
* ?verification=VALUE will get append
*/
private String passwordResetUrl = null;
/**
* in minutes
*/
private long passwordResetExpiration = 60;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy