I tested on local dev, 6.6.10 and is working, also its not _class, it has
to be @class, see below, also make sure you have
""cas.authn.mfa.core.provider-selection-enabled=true" in config
{
"@class": "org.apereo.cas.services.CasRegisteredService",
"serviceId": "^(https|imaps)://.*",
"name": "Sample",
"id": 1,
"description": "Sample Service",
"evaluationOrder": 10000,
"multifactorPolicy" : {
"@class" :
"org.apereo.cas.services.DefaultRegisteredServiceMultifactorPolicy",
"multifactorAuthenticationProviders" : [ "java.util.LinkedHashSet", [
"mfa-gauth", "mfa-webauthn" ] ]
}
}
On Wednesday, August 23, 2023 at 10:01:04 AM UTC-5 [email protected]
wrote:
> Hello John,
>
> first of all, thanks for your response.
>
> Unfortunately, it did not work. I am using the CAS overlay and set
> `cas.version=6.6.10` in `gradle.properties`. However, the trigger is still
> not working, I used a Groovy script to trigger mfa and printed the
> registered service as I did before. I have a question that is not directly
> related. Is there a way to block authentication when using Groovy to
> trigger the mfa? That would temporarily work. (The only method I found was
> to throw an exception on purpose, but that won't provide feedback to the
> user with what went wrong)
>
> On Wednesday, 23 August 2023 at 10:13:38 UTC-3 John wrote:
>
>> You have an array set, there was a bug in earlier 6.6 versions and was
>> fixed in a later 6.6 release. Please update to the latest 6.6.x release and
>> it will work as it should.
>>
>> On Wednesday, August 23, 2023 at 7:50:48 AM UTC-5 [email protected]
>> wrote:
>>
>>> Hello Ray,
>>>
>>> Sorry about that.
>>>
>>> I attach the registered service and the providers I get from the
>>> service. I used a Groovy script to print the registered service.
>>>
>>> I have tried using @class instead of _class and it did not made any
>>> difference, also tried to search through the CAS source code and I have the
>>> hypothesis that it might not be detecting either the policy or the
>>> providers I am using.
>>>
>>> On Friday, 18 August 2023 at 20:19:18 UTC-3 Ray Bon wrote:
>>>
>>> Diego,
>>>
>>> Image did not come through.
>>>
>>> Ray
>>>
>>> On Fri, 2023-08-18 at 11:46 -0700, 'Diego Gimenez' via CAS Community
>>> wrote:
>>>
>>> Notice: This message was sent from outside the University of Victoria
>>> email system. Please be cautious with links and sensitive information.
>>>
>>>
>>> Hello. As the title says I can't make an MFA trigger per service. Looks
>>> like the service can't detect such provider as shown in the following
>>> image[image:
>>> Displaying image.png]
>>>
>>>
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/de5de4c0-1860-4375-a9e6-bbe6bdba8a3fn%40apereo.org.