com.xlrit.gears.server.security.AuthProperties Maven / Gradle / Ivy
package com.xlrit.gears.server.security;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;
@Data
@Component
@ConfigurationProperties(prefix = "gears.auth")
public class AuthProperties {
private String mode;
private Internal internal;
private External external;
@Data
public static class Internal {
private String secret;
private String issuer;
}
@Data
public static class External {
private String clientId;
private String authority;
private String redirectUri;
private String cacheLocation;
}
}