mfa-simple: How can i add phone atribute to json cas.authn.mfa.simple.sms.text?

12 views
Skip to first unread message

artur mis

unread,
Jul 11, 2024, 6:18:21 AMJul 11
to CAS Community
I was trying :
for
cas.sms-provider.rest.headers.Content-Type=application/json

sample:

cas.authn.mfa.simple.sms.text={ "username": "xxx","password": "xxxx": "${cas.authn.mfa.simple.sms.attribute-name}","text": "${token}" , "sender" : "2waySMS" }

cas.authn.mfa.simple.sms.text={ "username": "xxx","password": "xxxxx","phone": "${@groovyFile:/etc/cas/config/SPAR.groovy}","text": "${token}" , "sender" : "2waySMS" }

cas.authn.mfa.simple.sms.text={ "username": "xxxx","password": "xxxx","phone": "${groovy { def phone = attributes['phone']; return phone ? phone[0] : ''; }}","text": "${token}" , "sender" : "2waySMS" }





Reply all
Reply to author
Forward
0 new messages