Need Advise for OAuth and OpenID for my PHP apps

Discussion in 'Programming' started by yuvrajm, Nov 15, 2009.

  1. #1
    HI,

    I am developing a php based simple app that allow a user to interact with the site, without a formal registeration. Here, I want to authenticate the user with oAuth and/or OpenID, using the services given by Google/Yahoo/Twitter/Facebook/AOL/*OPENID*, etc

    I am now stuck up on 1 point. When I authenticate simply using a URL,eg, in google, all I recieve is a token.

    My target is to get atleast the user's email and first name.
    I have absolutely no knowledge of REST API. So I need some simple and easy ideas on this. Can someone please help.

    The authentication pattern I have in my mind is:

    User is routed to the Authentication Client like google/yahoo/twitter

    Then

    The user gives his username and password

    THEN

    a token is generated and the user is re-routed to my page, say http://www.example.com/verify.php with details like the email address and first name and token in the URL itself.

    I hope I have made my problem clear!

    HELP SHALL BE HIGHLY APPRECIATED!
     
    yuvrajm, Nov 15, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    NeoCambell, Dec 5, 2009 IP