artur mis
unread,Jul 8, 2024, 12:20:48 PMJul 8Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community, Y G, artur mis, Stewart
Thank you Stewart
I see only 200 how you said :
Probably it is about this 200 :
2024-07-08 15:19:16,754 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Completed 200 OK>
2024-07-08 15:21:14,297 DEBUG [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <Cleaning up expired ticket [CASMFA-297739]>
During the flow process we can't see POST request in logs what is builded by cas, flow is not talkative , but i can see via tcpdump https communication with sms gate so we don't know what cas is sending. It would be beautifull if devlopers improve this proces and share their precious knowledge :) . I don't know if i can manage this solution which you described, so we wil see.
Finally:
Maybe there is second way to send sms via groovy script but it will be too not easy to achive. We can say that without beeing familiar with Sping Boot it is not possible to set in cas v6.5 and v7.1.0 simple-mfa with rest api text (SMS):
Dep like this:
implementation "org.apereo.cas:cas-server-support-simple-mfa"
implementation "org.apereo.cas:cas-server-core-notifications"
Setting cas.properties:
cas.authn.mfa.simple.name=SMS MFA
cas.authn.mfa.simple.order=0
cas.authn.mfa.simple.sms.attribute-name=phone
cas.authn.mfa.simple.sms.from=xxxxxxx
cas.authn.mfa.simple.sms.text=Your one-time authorization token is ${token}
cas.authn.mfa.simple.time-to-kill-in-seconds=120
cas.authn.mfa.simple.token-length=6
cas.sms-provider.rest.method=POST
cas.sms-provider.rest.basic-auth-username=webapi
cas.sms-provider.rest.basic-auth-password=xxxxxxxxxxxx
cas.sms-provider.rest.url=
https://api2.xxxxxx/messages/send_smscas.sms-provider.rest.headers.Content-Type=application/x-www-form-urlencoded
One more time thank you Stewart.