Skip to content

Instantly share code, notes, and snippets.

@chrismear
Created December 1, 2008 10:46
Show Gist options
  • Save chrismear/30707 to your computer and use it in GitHub Desktop.
Save chrismear/30707 to your computer and use it in GitHub Desktop.
Registering your application with the service providers:
Google
Primary article: http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
1. Create an X.509 certificate for your domain, following the instructions here: http://code.google.com/apis/gdata/authsub.html#Registered. Save both the keys file and the certificate file.
2. Sign up for a Google account if you haven't already got an appropriate one: https://www.google.com/accounts/NewAccount
3. Go to the Google Manage Your Domains page: https://www.google.com/accounts/ManageDomains
4. Add a new domain.
5. Click on the 'manage' link for the domain you added.
6. Follow the instructions to verify the domain.
7. Choose a Target URL. This the URL that your user is passed back to once they've finished authorizing your app at Google.
8. Upload your X.509 certificate file.
9. Google will provide you with an 'OAuth Consumer Key' and an 'OAuth Consumer Secret'. Save these.
Yahoo!
Primary article: http://developer.yahoo.com/auth/appreg.html
1. Sign up for a Yahoo! account if you haven't already got an appropriate one:
2. Go to: http://developer.yahoo.com/wsregapp/
3. Fill in your information. In particular, these fields:
a. 'Authentication method' should be set to 'Browser Based Authentication'.
b. 'Web Application URL' is the home page of your app.
c. 'BBAuth Success URL' is the URL your user will be passed back to after authorizing your app at Yahoo!.
d. Under 'Required access scopes', tick 'Yahoo! Address Book with Read Only access'.
4. Follow the instructions to confirm your domain.
5. Yahoo! will provide you with an 'application id' and a 'shared secret'. Save these.
Windows Live:
Primary article: http://msdn.microsoft.com/en-us/library/cc287659.aspx
1. Sign up for a Windows Live account if you haven't already got an appropriate one:
2. Generate a secret key that is at least 16 characters long, but no more than 64 characters long. (Running 'rake secret' in your Rails app will generate a good quality key, but you'll need to truncate it to 64 characters.)
3. Go to the Windows Live ID Application Center: https://msm.live.com/app/default.aspx
4. Click the 'Register an Application!' link.
5. Fill in your information. In particular, these fields:
a. 'Return URL' is the URL your user will be passed back to after authorizing your app at Windows Live.
b. 'Secret key' is the secret key you generated above.
c. 'Application verifier required' should be set to '0'.
6. Windows Live will provide you with an 'Application ID'. Save this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment