Seiten

Dienstag, 5. März 2013

BackupGoo 5 - How to manage a single account with OAuth 2.0

Introduction


At Google IO 2011 Google advised the developer for the first time to migrate the authorization from a ClientLogin (login with password and username) to OAuth2.

Due to the deprecation of the ClientLogin last year, we release BackupGoo 5 with a completely new authorization system based on OAuth2.

To set up BackupGoo there are two steps to do:
1. Create a google project in the "API console"
2. Setup OAuth2 in BackupGoo


1. Create a google project in the API console

The API console is used to gain access to the Google APIs and manage Google's quotas. When you created a new project, you can use this project for all your accounts. It's not restricted to one Account.
But when you want to back up more than one domain with hundreds of users, you can think about createing different projects for each domain.

So let's start:
 
Go to https://code.google.com/apis/console/?pli=1 and log in with your google account.


Click on "create Project".



This takes you to the services. Please enable Drive API and Calendar API.





Click on API Access (left tab) and click on the blue button "Create an OAuth 2.0 client ID".




Enter "BackupGoo" (or an arbitrary name) as project name and hit "Next"
















Select "Installed application" and "Other"  and click "Create client ID".

That's it already.

You now have two things you need for BackupGoo:
- Your client ID ending in ".apps.googleusercontent.com" 
- Your client secret



2. Setup OAuth2 in BackupGoo

When you start BackupGoo for the first time you can set up your account simply by adding your credentials to the form. Otherwise go to the account tab and choose "Add new account".












By hitting "Finish", a login window from Google will popup. After logging in, you can grant permission to BackupGoo to access your files.

Please note: 
Make sure that the account you use for the login at Google is the same that you want to add in BackupGoo!









Thats it!




Conclusion

Now you know how to create a Google project on the API console and set up a single account in BackupGoo.

While using Google's OAuth 2.0 authentication your account password is not provided to BackupGoo.


In case you got any questions - please don't hesitate to contact us at team@backupgoo.com!

1 Kommentar:

  1. I'm trying to follow this tutorial and when you click on the links they open here and not in another tab. A little annoying. Just add a "target _blank" to the links.

    AntwortenLöschen