CASMFA, anyone able to change the name for simple mfa and/or just use digits

211 views
Skip to first unread message

randomuser878

unread,
Jul 16, 2020, 3:49:58 PM7/16/20
to CAS Community

Hello

    Generally folks are used to see only a digit block when entering MFA codes either email or SMS.

  Has anyone able to change CASMFA to something else and/or successfully change to only digits. Applies to cas simple email, and/or any SMS based solutions.
 

  Thanks.
  Open to code compilation if needed.

  Tried to change to say one letter string entry
 support/cas-server-support-simple-mfa-core/src/main/java/org/apereo/cas/mfa/simple/CasSimpleMultifactorAuthenticationTicketFactory.java
...
public class CasSimpleMultifactorAuthenticationTicketFactory implements TransientSessionTicketFactory {
    /**
     * MFA ticket prefix.
     */
    public static final String PREFIX = "CASMFA";
...

But then you get a failure on retrieval phase per "Ticket definition for ... cannot be found in the ticket catalog which only contains the following ticket types: [[TGT, ST, PT, TST, PGT, CASMFA]]>"
  Entry stays in the storage and also cleanup process shows similar errors while trying to cleanup the ticket of unknown types.

 No idea where else CASMFA is defined as the base ticket types to attempt the change.

 Thanks.

 

randomuser878

unread,
Jul 16, 2020, 3:53:46 PM7/16/20
to CAS Community, randomuser878
Forgot cas 6.1.7 it it matters.

B.

Emilian Mitocariu

unread,
Apr 16, 2021, 7:42:00 AM4/16/21
to CAS Community, randomuser878
Hi,

I'm interested in removing the CASMFA prefix as well as it is annoying to write every time. Did someone found a solution for this?

Currently running version 6.2.x, but can upgrade to 6.3.x if needed.

Ritesh Tripathi

unread,
Apr 20, 2021, 11:03:40 AM4/20/21
to CAS Community, Emilian Mitocariu, randomuser878
In CAS 6.3 you can only enter the digits (XXXXXX) and it WORKS WELL. You can also enter the complete string - CASMFA -XXXXXX

Emilian Mitocariu

unread,
Apr 21, 2021, 1:55:13 AM4/21/21
to CAS Community, Ritesh Tripathi, Emilian Mitocariu, randomuser878
Thanks for the info Ritesh. I'm going to test it on 6.3

Emilian Mitocariu

unread,
Apr 28, 2021, 12:55:19 AM4/28/21
to CAS Community, Emilian Mitocariu, Ritesh Tripathi, randomuser878
Finally had time to test CAS 6.3 yesterday and I can confirm that now the CASMFA prefix can be excluded when being entered on the CAS interface.
Reply all
Reply to author
Forward
0 new messages