Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: JSON Sign In
12-10-2009, 03:39 AM #1
- Join Date
- Dec 2009
- Thanked 0 Times in 0 Posts
JSON Sign In
I'm using RPXNow.com and it's like this openID sign in thing. But I need help. It gives you a code for the sign in widget. EZ, but then when it sends the request and the token_url and auth_info I don't get it.
1) Add the sign-in interface to your website
The sign-in interface can be displayed in a "popup" overlay on top of your page, or embedded as an iframe. Choose the option below that best fits your needs.
RPXNOW.overlay = true;
RPXNOW.language_preference = 'en';
Copy the following signin/signup link to your pages:
<a class="rpxnow" onclick="return false;"
Also, you may configure which providers show up in your widget and in what order from the Providers page.
2) Receive the RPX token, and get the authentication information
After a successful authentication, RPX redirects the user back to the token_url at your website as specified in step 1. Write some code to handle requests to your token_url, and extract the token POST parameter.
Make the auth_info API call
HTTP POST to https://rpxnow.com/api/v2/auth_info with the following required parameters:
token Use the token sent to your token_url
RPX will respond with a JSON formatted response including the identifier of the user.
Use the identifier as the unique key to sign the user in to your website. If it's easier for you to parse XML, pass the optional format parameter to auth_info with a value of xml. You'll get a response like this:
<?xml version='1.0' encoding='UTF-8'?>
Last edited by HDivX; 12-10-2009 at 03:41 AM.
12-10-2009, 10:48 AM #2
- Join Date
- Apr 2003
- Bucharest, ROMANIA
- Thanked 379 Times in 375 Posts
errr... what is this? A question or a presentation of an widget? I guess you posted it in the wrong Forum.KOR