Hi, I would like to implement simple MFA with my CAS server and send code 
via the Signal messenger app. To achieve this I've installed this service 
https://morph027.gitlab.io/signal-web-gateway on my server that accepts 
requests like these:

curl -X POST -F "to=<my-phone-number>" -F "message=Test" http:
//localhost:5000

I'd like to use the REST method from simple MFA for sending text messages 
using a service like the one I've installed, but I'm not sure how the 
config for the REST request should look. This is my config for the base 
configs from MFA simple (I know this part works because I've used it with 
other SMS service providers):

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

And for the REST request part I've tried this, but it doesn't work:

cas.smsProvider.rest.method=POST
cas.smsProvider.rest.url=http://localhost:5000

Logs don't give a lot of information, even on debug, only says that the mfa 
methods configured have failed to send the code. I'm thinking that maybe I 
need to set the "to" and "message" attributes into the REST request but not 
sure how this should look. Can someone help me or at least give me some 
pointers?

-- 
- 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/1202f20b-f875-48a5-a996-8ee34470e09f%40apereo.org.

Reply via email to