All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rocketbase.commons.config.AuthProperties Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
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