I figured it out.
Added a name to my jaas definition -
cas.properties:
#JAAS DEV
cas.authn.jaas[0].name=jaas_dev
cas.authn.jaas[0].realm=DevLogin
cas.authn.jaas[0].login-config-type=JavaLoginConfig
cas.authn.jaas[0].login-configuration-file=/opt/apache-tomcat-9.0.60/conf/jaas.conf
cas.authn.jaas[0].password-encoder.encoding-algorithm=MD5
cas.authn.jaas[0].password-encoder.type=NONE
#JAAS PROD
cas.authn.jaas[0].name=jaas_prod
cas.authn.jaas[1].realm=ProdLogin
cas.authn.jaas[1].login-config-type=JavaLoginConfig
cas.authn.jaas[1].login-configuration-file=/opt/apache-tomcat-9.0.60/conf/jaas.conf
cas.authn.jaas[1].password-encoder.encoding-algorithm=MD5
cas.authn.jaas[1].password-encoder.type=NONE
Added authenticationPolicy to my service definitions -
{
@class: org.apereo.cas.services.RegexRegisteredService
serviceId: ^https://(somesite|192.168.1.2)/.*
name: dev
theme: dev
id: 8675309
proxyTicketExpirationPolicy:
{
@class: org.apereo.cas.services.DefaultRegisteredServiceProxyTicketExpirationPolicy
}
serviceTicketExpirationPolicy:
{
@class: org.apereo.cas.services.DefaultRegisteredServiceServiceTicketExpirationPolicy
}
evaluationOrder: 2
attributeReleasePolicy:
{
@class: org.apereo.cas.services.ReturnAllAttributeReleasePolicy
}
authenticationPolicy:
{
@class: org.apereo.cas.services.DefaultRegisteredServiceAuthenticationPolicy
requiredAuthenticationHandlers:
[
java.util.HashSet
[
jaas_dev
]
]
criteria:
{
@class: org.apereo.cas.services.AllowedAuthenticationHandlersRegisteredServiceAuthenticationPolicyCriteria