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());
}
}
Aggregations