Class TenantRelayFilter
java.lang.Object
org.chenile.security.auth.gateway.filter.TenantRelayFilter
- All Implemented Interfaces:
org.springframework.cloud.gateway.filter.GlobalFilter, Ordered
@Component
public class TenantRelayFilter
extends Object
implements org.springframework.cloud.gateway.filter.GlobalFilter, Ordered
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GatewayAuditServiceprivate final GatewayPropertiesFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionTenantRelayFilter(GatewayAuditService auditService, GatewayProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprivate ObjectclaimValue(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken authentication, String claimName) reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain) private StringformatClaim(Object claim, String format) intgetOrder()private StringrelayHeader(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken authentication, GatewayProperties.Header header) private String
-
Field Details
-
auditService
-
properties
-
-
Constructor Details
-
TenantRelayFilter
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain) - Specified by:
filterin interfaceorg.springframework.cloud.gateway.filter.GlobalFilter
-
getOrder
-
relayHeader
private List<String> relayHeader(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken authentication, GatewayProperties.Header header) -
claimValue
-
formatClaim
-
toJson
-
quote
-
CHENILE