After adding below library and properties files;
implementation
"org.apereo.cas:cas-server-support-pac4j-webflow:$
{project.
'cas.version'}"
cas.authn.pac4j.saml[0].keystorePassword=
pac4j-demo-passwd
cas.authn.pac4j.saml[0].privateKeyPassword=
pac4j-demo-passwd
cas.authn.pac4j.saml[0].keystorePath=
/etc/cas/config/samlKeystore.jks
cas.authn.pac4j.saml[0].serviceProviderEntityId=
urn:mace:saml:pac4j.org
cas.authn.pac4j.saml[0].serviceProviderMetadataPath=
/etc/cas/config/sp-metadata.xml
cas.authn.pac4j.saml[0].identityProviderMetadataPath=
https://dev-18461928.okta.com/app/exk5fzxeb8QKtVEL05d7/sso/saml/metadata
cas.authn.pac4j.saml[0].clientName=
SAML2Client
I got an error like below;
ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas].[dispatcherServlet]] - <Servlet.service() for servlet [dispatcherServlet] in context with path [/cas] threw exception [Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.apereo.cas.support.pac4j.web.flow.DelegatedClientAuthenticationAction@dbe8359 in state 'clientAction' of flow 'login' -- action execution attributes were 'map[[empty]]'] with root cause>
org.pac4j.core.exception.TechnicalException: No client found for name: SAML2Client