Programmatically login

Hi. I’m new to both Scriptcase and PHP.
Can anyone help me on how I can programmatically login a specific user in server-side code?
So that I can integrate my non-SC app with SC.Or maybe I can implement a very custom login system.
I looked into the sc_ macros but couldn’t find a clue.
Thanks in advance…

If you generate the security module, then there is a login procedure. There you can apply code to perform ldap/saml/contact external database etc.

Thank you @aducom, will try that.