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 Details

  • Constructor Details

  • Method Details

    • filter

      public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain)
      Specified by:
      filter in interface org.springframework.cloud.gateway.filter.GlobalFilter
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
    • relayHeader

      private List<String> relayHeader(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken authentication, GatewayProperties.Header header)
    • claimValue

      private Object claimValue(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken authentication, String claimName)
    • formatClaim

      private String formatClaim(Object claim, String format)
    • toJson

      private String toJson(Object claim)
    • quote

      private String quote(String value)