1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user