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?