Help needed with Dreamweaver 8 login and RPX Now

tgl

Beta member
Messages
1
Hello,

Okay I'll get right to it. I have a website (www.thegamelounge.net) and I have been trying to create a login system for it for so long. I am not good with coding so it has been hard for me trying to create such a system.
What I need to do is firstly, allow users to login using their OpenID (www.rpxnow.com) user names (such as Windows Live, OpenID, Yahoo and Google accounts), but then have the option to register through my website and also link their RPX login with the account created through my website (this can be done using the RPX mappings system).
Here is how to do the RPX login:
*********


~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 parameter.

Make the auth_info API call

HTTP POST to https://rpxnow.com/api/v2/auth_info with the following required parameters:

apiKey:: b0ed15ef864e4bdf21260b16438be...
token:: Use the token sent to your token_url
RPX will respond with a JSON formatted response including the identifier of the user.

{
"profile": {
"displayName": "brian",
"preferredUsername": "brian",
"url": "http:\/\/brian.myopenid.com\/",
"providerName": "Other",
"identifier": "http:\/\/brian.myopenid.com\/"
},
"stat": "ok"
}

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'?>
<rsp stat='ok'>
<profile>
<displayName>
brian
</displayName>
<identifier>
http://brian.myopenid.com/
</identifier>
<preferredUsername>
brian
</preferredUsername>
<providerName>
Other
</providerName>
<url>
http://brian.myopenid.com/
</url>
</profile>
</rsp>

Finally, use the handy RPX test tool, to help you preview and test your token_url and auth_info call implementations. We also have example code for C#, Java, PHP, or Ruby on Rails.

**********
So, basically what I need is some help with making the token form, where to embed it and how to embed it.
I then need to be able to create a registration system on my website using Dreamweaver 8, allowing me to link the website accounts to the RPX accounts.

Here is how to do mappings:
**********


~MAPPINGS~

Mappings can help you add OpenID sign-in to your existing user accounts without changing your database schema. The Mapping API also helps you implement the best practice of allowing multiple OpenIDs per user, which gives the end user total control of their identity by letting them switch their identity provider as their needs change.

You probably have a "users" or "accounts" table in your database. The mapping API lets you associate the primary key of an existing user with an OpenID, and store that mapping on the RPX server. When a mapping exists for a user, RPX returns both the primary key for the user and the associated OpenID in the auth_info call. You then use the primary key to figure out which account to sign the user into on your site.

New mappings are created with the map API call. Before using the map API call to save a primary key to identifier mapping, you must first know who the user is on your site, and have a record for them in your users or accounts table. This means that the user is either already logged in with a legacy account, or they have been verified using RPX and you have created a new record for them in the database but haven't yet stored that mapping anywhere. Either way, new mappings are generally created right after a user has verified their identity with RPX and you have extracted their identifier via the auth_info API call.

The image below represents a website using RPX with a Users table that has a primary key called "id". A user has bound three different OpenIDs to his account, and because the website is using the mapping API he may use any one of his mapped accounts to sign in as the BrianMan692 user.


After the mapping is made, when the user signs in with his brian.myopenid.com OpenID, an auth_info response including the primaryKey will be returned. Use the value of the primaryKey field to sign the user in as BrianMan692.

{
"profile": {
"identifier": "http:\/\/brian.myopenid.com\/",
"primaryKey": "17"
},
"stat": "ok"
}





***********
So, basically what I need is some help with making the token form, where to embed it and how to embed it.
I then need to be able to create a registration system on my website using Dreamweaver 8, allowing me to link the website accounts to the RPX accounts.

Further information can be obtained from www.rpxnow.com/docs

Thank you!
 
Back
Top Bottom