simple mfa token

85 views
Skip to first unread message

Mm Mm

unread,
Oct 26, 2023, 4:49:14 AM10/26/23
to CAS Community
  I am trying to use simple mfa by email but when the email is received  the space holder %s is the same and not replaced with token
my configuration is
cas:
  authn:
    mfa:
      triggers:
        global:
          global-provider-id: mfa-simple
      simple:
        order: 0
        token:
          core:
            token-length: '4'
        mail:
            attribute-name: mail
            text: "Hello! Your requested CAS token is ${{%s}}"
            from: m...@example.com
            subject: CAS MFA Token
            time-to-kill-in-seconds: '30'

Hartmut Trüe

unread,
Oct 26, 2023, 5:32:24 AM10/26/23
to CAS Community, Mm Mm
Try this:
    text: "Hello! Your requested CAS token is ${token}"

Regards,
Hartmut

John

unread,
Oct 26, 2023, 8:33:48 AM10/26/23
to CAS Community, Hartmut Trüe, Mm Mm
and also ${tokenWithoutPrefix} for the token without the CAS- prefix

Mm Mm

unread,
Jan 2, 2024, 3:37:25 AM1/2/24
to CAS Community, John, Hartmut Trüe, Mm Mm
 thanx all  I just solve it  after post this question using same answer you provide  and that works fine 
Reply all
Reply to author
Forward
0 new messages