@Override
    protected String getRequestedService(final HttpServletRequest request) {
        val providerId = request.getParameter(SamlIdPConstants.PROVIDER_ID);
        if (StringUtils.isNotBlank(providerId)) {
            LOGGER.trace("Extracted provider id from the request is [{}]", providerId);
            return providerId;
        }
        return super.getRequestedService(request);
    }
This is {@link SamlIdPServiceFactory}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/authentication/SamlIdPServiceFactory.java