public class CasPlugin
extends org.apache.shenyu.plugin.base.AbstractShenyuPlugin
Supports fetching user info from permission system via HTTP or HSF generic invocation. User info fields are aligned with SelectUserDetailService from the authority system.
| 构造器和说明 |
|---|
CasPlugin(org.springframework.web.reactive.function.client.WebClient webClient,
org.springframework.data.redis.core.ReactiveStringRedisTemplate redisTemplate,
org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory)
Instantiates a new CAS plugin.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected reactor.core.publisher.Mono<java.lang.Void> |
doExecute(org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain,
org.apache.shenyu.common.dto.SelectorData selector,
org.apache.shenyu.common.dto.RuleData rule) |
int |
getOrder() |
protected reactor.core.publisher.Mono<java.lang.Void> |
handleSelectorIfNull(java.lang.String pluginName,
org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
Override handleSelectorIfNull to intercept CAS SLO back-channel POST
when no selector matches the request path.
|
java.lang.String |
named() |
boolean |
skip(org.springframework.web.server.ServerWebExchange exchange) |
public CasPlugin(org.springframework.web.reactive.function.client.WebClient webClient,
org.springframework.data.redis.core.ReactiveStringRedisTemplate redisTemplate,
org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory)
webClient - the web client for HTTP callsredisTemplate - the reactive redis template for ticket-session mappingconnectionFactory - the reactive redis connection factory for byte[] operationsprotected reactor.core.publisher.Mono<java.lang.Void> handleSelectorIfNull(java.lang.String pluginName,
org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
handleSelectorIfNull 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPluginprotected reactor.core.publisher.Mono<java.lang.Void> doExecute(org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain,
org.apache.shenyu.common.dto.SelectorData selector,
org.apache.shenyu.common.dto.RuleData rule)
doExecute 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPluginpublic int getOrder()
public java.lang.String named()
public boolean skip(org.springframework.web.server.ServerWebExchange exchange)
Copyright © 2026 The Apache Software Foundation. All rights reserved.