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 2:18:4

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 Wedne

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 https://apereo.github.io/cas/6.6.x/mfa/Configuring-Multifactor-Authentication

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 se

[cas-user] Re: CAS 6.6.11 : help needed for cas-server-support-gauth-couchdb debugging

2023-08-23 Thread John
Were no longer on 6.x series, as in your case, we used couchdb for many items and it is being removed in 7.x so we went ahead and moved on and it looks as though it was removed on the tag for 6.6.10, maybe on accident? because it still exists in the 6.6.x branch. Maybe an ooops by one of the de

Re: [cas-user] CAS 6.6.11 : help needed for cas-server-support-gauth-couchdb debugging

2023-08-23 Thread Ray Bon
Could you use a different storage system? I do not see the couchdb module in the current development branch. Not sure if it is being removed or if a different module takes on that feature. Instead of running gradlew in vscode, you can run it from the command line. The 'clean' part of the comman

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)://.*", "name":

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 fo

[cas-user] CAS 6.6.11 : help needed for cas-server-support-gauth-couchdb debugging

2023-08-23 Thread spfma.tech via CAS Community
Hi, I am still trying to understand what is wrong with "cas-server-support-gauth-couchdb" (only the first authenticator is recorded in the database, none is working anymore after a restart). As I am not a Java dev (I don't have the skills and don't have the most convenient tools), my idea w

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 befor

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 a