Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-30 Thread 'Diego Gimenez' via CAS Community
Hello, first of all, thank you for your cooperation, it helped me to find out what was the actual problem. I tried using the cas.service-registry.json.location instead of the mongo db and it worked. It seems like when CAS reads a service from a mongo database, it doesn't recognize the @class

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
I wouldnt even be able to tell you why your build doesnt launch with @class because that is what it should be, maybe its VS Code issue. You can setup intellij idea community and its free. Here is the gradle build, although, can you try downgrading to 6.6.9 in gradle.properties ? just curious on

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
You shouldnt need groovy for that, what you want I believe is Failure mode, see here https://apereo.github.io/cas/6.6.x/mfa/Configuring-Multifactor-Authentication-FailureModes.html ""failureMode" : "CLOSED" CLOSED = Disallow MFA and block authentication. On Wednesday, August 23, 2023 at

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
Are you sure that CAS is even reading your service definition? because it looks off completely and doesn't pass json validation. Turn your logging in log4j xml to debug and see what it spits out, try this as well, as the only service definition for cas, https://pastebin.com/mZKavp1h On

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread Ray Bon
Diego, A service (application) can be configured to trigger MFA https://apereo.github.io/cas/6.6.x/mfa/Configuring-Multifactor-Authentication-Triggers-PerApplication.html and block (bypass=false) or with groovy script

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread 'Diego Gimenez' via CAS Community
I tried using @class instead of _class for my service and CAS will not launch, I am struggling to find a solution. Can you show me your build.gradle and your cas.properties so I can try it and see if the problem may be in any of my local build.gradle or cas.properties? What I mean with that

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
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)://.*",

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
Forgot, what do you mean by this? " Is there a way to block authentication when using Groovy to trigger the mfa? " can you post what your doing in groovy to get better idea? On Wednesday, August 23, 2023 at 10:01:04 AM UTC-5 diego@unc.edu.ar wrote: > Hello John, > > first of all, thanks

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread 'Diego Gimenez' via CAS Community
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

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-23 Thread John
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 diego@unc.edu.ar wrote: > Hello Ray, > > Sorry about that. > > I

Re: [cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-18 Thread Ray Bon
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

[cas-user] CAS 6.6.0 MFA Per application trigger not working

2023-08-18 Thread 'Diego Gimenez' via CAS Community
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: