@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        return FunctionUtils.doUnchecked(() -> {
            val serviceCtx = WebUtils.getService(requestContext);
            if (serviceCtx != null) {
                val service = serviceSelectionStrategy.resolveServiceFrom(serviceCtx);
                val registeredService = this.servicesManager.findServiceBy(service);
                RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(service, registeredService);
                LOGGER.debug("Found registered service [{}] from the context", registeredService.getServiceId());
                if (registeredService instanceof final OidcRegisteredService oauthService) {
                    WebUtils.putServiceUserInterfaceMetadata(requestContext, new DefaultRegisteredServiceUserInterfaceInfo(oauthService));
                }
            }
            return success();
        });
    }
This is {@link OidcRegisteredServiceUIAction}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/flow/OidcRegisteredServiceUIAction.java