I think you can use groovy script to select the delegate provider using 
query parameter of service request, here is my sample script to detect auto 
redirect parameter and redirect to delegate provider :

import org.apereo.cas.web.*
import org.apereo.cas.configuration.model.support.delegation.*
import org.apereo.cas.authentication.principal.*
import java.net.*

def run(Object[] args) {
try {
// def requestContext = args[0]
def webApplicationService = args[1] as AbstractWebApplicationService
// def registeredService = args[2]
def provider = args[3][0] as DelegatedClientIdentityProviderConfiguration
def logger = args[4]
if (webApplicationService != null) {
def param = webApplicationService.getAttributes().get("nonce")
if (param != null && param.get(0).equalsIgnoreCase("autoredirect")) {
provider.autoRedirectType = DelegationAutoRedirectTypes.CLIENT
return provider
}
}
} catch (Exception ex) {
logger.error(ex);
}
return null
}
you can develop custom page to get user id and send it to login page.
On Friday, October 27, 2023 at 10:20:26 PM UTC+3:30 Aaron Chantrill wrote:

> No, I haven't found a way. Please let me know if you have found anything. 
> I ended up writing a whole new login form to give my users two different 
> buttons to press depending on whether they are logging in using the 
> delegate provider (AzureAD) or one of the standard providers.
>
> Thank you,
> Aaron
>
> On Thursday, October 12, 2023 at 8:33:45 PM UTC-4 Pablo Vidaurri wrote:
>
>> Considering some thing similar. For users with xyz email domain delegate 
>> to Azure AD, all others use out of the box ldap integration.
>>
>> Find anything?
>>
>> On Wednesday, September 27, 2023 at 9:55:51 PM UTC-5 Aaron Chantrill 
>> wrote:
>>
>>> I would like to be able to have my users type in their username and then 
>>> use a regular expression match to direct the user to either a delegated 
>>> authority or to a form where they put in their password for an ldap or JDBC 
>>> authentication.
>>>
>>> I see where I can use a regular expression to match to different 
>>> delegated authorities, but it doesn't seem like I can say to use the 
>>> non-delegated form if none are matched.
>>>
>>> Has anyone figured out how to do something similar?
>>>
>>> Thank you,
>>> Aaron
>>>
>>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a786a465-fb26-4afb-8a7a-59487290d1b9n%40apereo.org.

Reply via email to