The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login via JSON Web Token
#2
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.
  Reply


Messages In This Thread
Login via JSON Web Token - by petey - 12-30-2017, 05:05 AM
RE: Login via JSON Web Token - by ivinsons - 12-16-2018, 09:37 PM
Login via JSON Web Token - by Brandin - 12-30-2017, 01:21 PM
Login via JSON Web Token - by petey - 12-30-2017, 02:44 PM
Login via JSON Web Token - by Brandin - 12-30-2017, 04:11 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)