Hello,
I have 2 primary modes of authentication, one being an inhouse LDAP where username and passwords are stored for internal users and another Microsoft Entra(There could be multiple, basically each company having one) for some external users. I have both flows running properly. I want to stop external users from logging in via LDAP. Ideally if an external user enters their email and password, I want CAS to redirect them to the appropriate Entra url based on their domain name.
I did setup a:
cas.authn.policy.groovy[0].script=file:/authRouting.groovy
where I return an exception if the user is external, but this script is called after LDAP authentication is successful and only returns an abstract message that the user is not authenticated.
Are there any other properties that I could use to redirect user based on their domain name to different authentication action
Thank you,
Gautham