12-30-2017, 01:21 PM
I'm just formulating this in my dead on the go.
I would duplicate login.php into usersc and call a redirect on that which sends the user to the Authentication Server.
On return, I would have a particular callback URL, eg login_callback.php in usersc that would handle the actual login and return from JSON.
The session creation should be easy, if you take a look at the most recent Update, it contacts a cloaking feature, take a look at that code and it will give a good example on session creation.
Sorry I wasn't able to come up with a plug and play solution, without really understanding the complete project, it would be hard for me to pull some code together for you.
I would duplicate login.php into usersc and call a redirect on that which sends the user to the Authentication Server.
On return, I would have a particular callback URL, eg login_callback.php in usersc that would handle the actual login and return from JSON.
The session creation should be easy, if you take a look at the most recent Update, it contacts a cloaking feature, take a look at that code and it will give a good example on session creation.
Sorry I wasn't able to come up with a plug and play solution, without really understanding the complete project, it would be hard for me to pull some code together for you.