Re: [PHP] Is there a PHP based authentication library?

[email protected] (Mark)
Newsgroups php.general
Message-ID <CAPd6JnFNzhcNo4G_p0PEXR3L3+nTSHGW0dNv4+k8w21=3-=HHg@mail.gmail.com>
Hi Bastien,

That is indeed getting very close to what i was looking for. Thanks a lot!

On Tue, Apr 2, 2013 at 9:46 PM, Bastien <[email protected]> wrote:
> Check out
> http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from
> Phil sturgeon.
>
> Bastien Koert
>
> On 2013-04-02, at 3:41 PM, Mark <[email protected]> wrote:
>
> Hi Andy,
>
> To be honest, that's also not what i'm looking for, but might be a
> good starting point to extend on. Depends on how you made it :) I cant
> promise that i'ill be working on it. I might be for some future
> project in my company but it might very well not happen as well.
>
> On Tue, Apr 2, 2013 at 2:08 AM, Andy McKenzie <[email protected]> wrote:
>
> I started building one at my last job, though it was part of a framework I
>
> was developing.  I knew I was going to need to authenticate against both
>
> LDAP and old-fashioned database username/md5-password columns.  (Ah, legacy
>
> user databases.)
>
>
> If it would be useful, I could dig out what I had and try to make it into a
>
> stand-alone set of functions, but I never got further than those two
>
> options.  Basically there was a script that took in a username and password
>
> from a web form, then looked at a config file to decide which set of the
>
> sub-functions to use.  For a DB, it checked to see if the username and
>
> hashed password matched a row in the database;  for LDAP, it did some
>
> re-encoding to handle the weird encrypt that our OpenLDAP server used, then
>
> ran through the process of checking to see if the user actually had that as
>
> their password.
>
>
> Like I said, let me know if anyone wants to see it... I'm unemployed right
>
> now, and a project to work on this week (or next... this week is kind of
>
> busy) might be a good thing.
>
>
> -Andy McKenzie
>
>
>
> On Mon, Apr 1, 2013 at 6:49 PM, Mark <[email protected]> wrote:
>
>
> On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea <[email protected]>
>
> wrote:
>
> Hi Mark,
>
> I think a simple Google search would be faster. Anyway, an unified way
>
> for
>
> 3rd party authentication doesn't exist from my knowledge, but for Persona
>
> you could use the sample from mozilla github account
>
> https://github.com/mozilla/browserid-cookbook .
>
>
> Good luck,
>
> Sorin!
>
>
>
> On Tue, Apr 2, 2013 at 12:26 AM, Mark <[email protected]> wrote:
>
>
> Hi,
>
>
> I stumbled upon this payment library: http://ci-merchant.org/ which
>
> abstracts the different payment backends away and exposes a new easy
>
> to use interface for the app developer to use. Thus making it very
>
> easy to use different payment providers.
>
>
> I was wondering if something like that is also existing for
>
> authentication? For example, in authentication you have quite a few
>
> different ones:
>
> - Mozilla Persona
>
> - openid
>
> - facebook connect
>
> - google (openid?)
>
> - use/pass based authentication (a.k.a. the self made version that
>
> every dev begins with)
>
> - oauth
>
> - twitter connect
>
> - etc...
>
>
> Is there such a library in existence? I'm especially looking for one
>
> with mozilla persona implemented.
>
>
> Kind regards,
>
> Mark
>
>
> --
>
> PHP General Mailing List (http://www.php.net/)
>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
>
> Badea Sorin (unu.sorin)
>
> [email protected]
>
> [email protected]
>
> Pagina personala:
>
> http://badeasorin.com
>
>
> I couldn't find it on google thus i asked in the one place where - if
>
> it exists - people would probably know. I find it quite surprising
>
> that a library like this isn't in existence yet. I can imagine tons of
>
> sites would certainly benefit from having one generic interface to
>
> use.
>
>
> Anyway, thank you for your pointer and reply. If you (or anyone else)
>
> finds a lib for this, please don't hesitate to post it in here. :)
>
>
> --
>
> PHP General Mailing List (http://www.php.net/)
>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.