implementation "org.apereo.cas:cas-server-support-json-service-registry"
implementation "org.apereo.cas:cas-server-support-pac4j-webflow"
3) Added the following properties to cas.properties
cas.authn.pac4j.saml[0].keystorePassword=<password>
cas.authn.pac4j.saml[0].privateKeyPassword=<password>
cas.authn.pac4j.saml[0].serviceProviderEntityId=https://localhost:8443
cas.authn.pac4j.saml[0].keystorePath=<path to samlKeystore.jks>
cas.authn.pac4j.saml[0].serviceProviderMetadataPath=<path to cas_metadata.xml>
cas.authn.pac4j.saml[0].identityProviderMetadataPath=<path to okta-metadata.xml>
cas.authn.pac4j.saml[0].clientName=<client name>
cas.authn.pac4j.saml[0].destinationBinding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
4) this is my json configuration file
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https?|imaps?|http?)://.*",
"name" : "<application_name>",
"id" : 1,
"evaluationOrder" : 1,
"logo" : "logo url",
"accessStrategy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"delegatedAuthenticationPolicy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceDelegatedAuthenticationPolicy",
"allowedProviders" : [ "java.util.ArrayList", [ "app-saml" ] ]
}
}
}