Sentora Support Forums

Full Version: How can I use Sentora's main authentication in another PHP script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the best way to do this? I have the idea to select it directly from the database but I couldn't figure out how Sentora does its authentication. Is there an API for this?
(11-07-2015, 08:47 AM)anthony Wrote: [ -> ]What is the best way to do this? I have the idea to select it directly from the database but I couldn't figure out how Sentora does its authentication. Is there an API for this?

There's info in the docs here: http://docs.sentora.org/?node=9

I haven't tried using any of it, so I wouldn't be too much help there Sad
(11-07-2015, 12:50 PM)TGates Wrote: [ -> ]
(11-07-2015, 08:47 AM)anthony Wrote: [ -> ]What is the best way to do this? I have the idea to select it directly from the database but I couldn't figure out how Sentora does its authentication. Is there an API for this?

There's info in the docs here: http://docs.sentora.org/?node=9

I haven't tried using any of it, so I wouldn't be too much help there Sad

Thank you so much for your help so far Smile

I'll use that to the best of my abilities but I wish I could at least figure out what hashing algorithm that Sentora uses so maybe I can auth against the user's database.
If you want to authenticate from the database, I suggest you take a look at this file:

https://github.com/sentora/sentora-core/....class.php