Mikaël,

Under Password Policy tab on 
https://apereo.github.io/cas/7.0.x/installation/Password-Policy-Enforcement.html
 there are properties that do not show up in the 6.6.x docs. Perhaps some new 
attributes were introduced.

Ray

________________________________
From: cas-user@apereo.org <cas-user@apereo.org> on behalf of Mikaël Le Bohec 
<mamach...@gmail.com>
Sent: 21 June 2024 02:05
To: CAS Community <cas-user@apereo.org>
Subject: [cas-user] Problem with exception in a groovy script in CAS v7.X

You don't often get email from mamach...@gmail.com. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Hi,

In CAS v6.6.15.1 I can throw an AccountPasswordMustChangeException in a groovy 
script for lppe and I will get the message of 
"authenticationFailure.AccountPasswordMustChangeException".

But in CAS v7.0.X and v7.1.X it does not work any more, the webflow doesn't 
redirect to the expected page.

My groovy script is simple :

        import 
org.apereo.cas.authentication.exceptions.AccountPasswordMustChangeException

        def List<MessageDescriptor> run(final Object... args) {
            throw new AccountPasswordMustChangeException()
        }

In the logs I have this :

        2024-06-19 12:58:15,807 ERROR 
[org.apereo.cas.util.concurrent.CasReentrantLock] - 
<AccountPasswordMustChangeException
                IndyInterface.java:fromCache:321
                lppe-strategy-throws-error.groovy:run:4
                DirectMethodHandleAccessor.java:invoke:103
        >
        2024-06-19 12:58:15,810 ERROR 
[org.apereo.cas.authentication.DefaultAuthenticationManager] - <Authentication 
has failed. Credentials may be incorrect or CAS cannot find authentication 
handler that supports [UsernamePasswordCredential(username=lehirleb, 
source=null, customFields={})] of type [UsernamePasswordCredential]. Examine 
the configuration to ensure a method of authentication is defined and analyze 
CAS logs at DEBUG level to trace the authentication event.>
        2024-06-19 12:58:15,810 ERROR 
[org.apereo.cas.authentication.DefaultAuthenticationManager] - 
<[LdapAuthenticationHandler]: 
[org.apereo.cas.authentication.exceptions.AccountPasswordMustChangeException / 
null]>

Is there a new way to do it?
My goal is to redirect a user when his password is invalid and is in a special 
group (a group of banned users for instance).

Regards.

--
- 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<mailto:cas-user+unsubscr...@apereo.org>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fa2f6b46-eb70-4ea2-bb81-0ee639669ff6n%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/fa2f6b46-eb70-4ea2-bb81-0ee639669ff6n%40apereo.org?utm_medium=email&utm_source=footer>.

-- 
- 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/YT3PR01MB9946AEC3B82A49B13169FB03CECB2%40YT3PR01MB9946.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to