Search in sources :

Example 1 with BizSystemPortal

use of com.mendmix.gateway.model.BizSystemPortal in project jeesuite-libs by vakinge.

the class GatewayReactiveCustomAuthnHandler method beforeAuthentication.

@Override
public void beforeAuthentication(ServerWebExchange exchange) {
    ServerHttpRequest request = exchange.getRequest();
    String domain = RuequestHelper.getOriginDomain(request);
    BizSystemPortal portal = CurrentSystemHolder.getSystemPortal(domain);
    if (portal != null) {
        CurrentRuntimeContext.setTenantId(portal.getTenantId());
        CurrentRuntimeContext.setClientType(portal.getClientType());
        CurrentRuntimeContext.setPlatformType(portal.getCode());
    }
}
Also used : BizSystemPortal(com.mendmix.gateway.model.BizSystemPortal) ServerHttpRequest(org.springframework.http.server.reactive.ServerHttpRequest)

Aggregations

BizSystemPortal (com.mendmix.gateway.model.BizSystemPortal)1 ServerHttpRequest (org.springframework.http.server.reactive.ServerHttpRequest)1