Sorry for late response I've been busy at the office.
So if you want to use one of the "officially" supported sms providers like
nexmo, you first need to build CAS with support for simple mfa and nexmo.
The dependencies for that are:
compile
"org.apereo.cas:cas-server-support-simple-mfa:${project.'cas.version'}"
compile
"org.apereo.cas:cas-server-support-sms-nexmo:${project.'cas.version'}"
1. I'm specifying this part as well as you said CAS complained about not
having a sms provider configured, but can't tell for sure without any logs.
As for the configuration on my case I was getting the phone number from
LDAP with:
cas.authn.ldap[0].principalAttributeList=mail,telephoneNumber
And this is the whole 2FA config:
cas.authn.mfa.globalProviderId=mfa-simple
cas.authn.mfa.simple.name=SMS 2FA
cas.authn.mfa.simple.order=1
cas.authn.mfa.simple.timeToKillInSeconds=180
cas.authn.mfa.simple.tokenLength=6
cas.authn.mfa.simple.sms.from=CAS
cas.authn.mfa.simple.sms.text=This is your CAS 2FA code: %s
cas.authn.mfa.simple.sms.attributeName=telephoneNumber
cas.smsProvider.nexmo.apiToken=<apiToken>
cas.smsProvider.nexmo.apiSecret=<apiSecret>
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e7f3744f-6a24-4762-91ca-2af073bb7c87%40apereo.org.