OpenID & Facebook Authentication Combination

Can I use an authentication system in a web application?

I want to use OpenId, but I think my potential customers are more likely to have a Facebook identifier.

So I wonder if both types of authentication can be offered?

+5
source share
4 answers

For almost every language there should be a Framework! You can bundle / combine the functionality of these frameworks to suit your needs!

In pseudo code:

if(IsUserValidViaOpenId() || IsUserValidByOwnAuthDB()) ...  user auth successful

java, Acegi/ Spring Security (, - ). openID userdb!

+2

Facebook OpenID, , , OpenID ( , , OpenID).

+3

RPX. OpenID . Facebook MySpace OpenID.

, , , Stack Overflow.

+2

- :

def authenticate(form_info):
    url = form_info['url']
    if (is_facebook_url(url)):
        return perform_facebook_authentication(form_info)
    else:
        return perform_open_id_authentication(form_info)
0

All Articles