24 lines
542 B
Java
24 lines
542 B
Java
|
|
package com.aida.gateway.config;
|
||
|
|
|
||
|
|
import lombok.Data;
|
||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
|
import org.springframework.stereotype.Component;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
@Data
|
||
|
|
@Component
|
||
|
|
@ConfigurationProperties(prefix = "gateway.auth")
|
||
|
|
public class GatewayAuthProperties {
|
||
|
|
|
||
|
|
private String jwtSecret = "JWTSECRET";
|
||
|
|
|
||
|
|
private String jwtTokenHeader = "Authorization";
|
||
|
|
|
||
|
|
private String jwtTokenPrefix = "Bearer-";
|
||
|
|
|
||
|
|
private List<String> ignorePaths;
|
||
|
|
|
||
|
|
private boolean blacklistEnabled = true;
|
||
|
|
}
|