Signup with Google

Add Google as Auth Provider

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Authentication > Auth Provider

b) Add Google as an Authentication provider at OAuthM Providers by clicking on Activate in the line of Google

c) Go to the list of active providers by selecting the Active tab. Click on Configure for the entry Google. Copy the Redirect URI to your clipboard


Create a new Google OAuth application

a) Head to the Google Developer Console

b) Click on Project and Create project

c) Enter Project Name (and choose the rest selection as you like), then click Create

d) Enable the Google+ API at API Manager > Library > Google+ API by click on enable

e) Go to API Manager > Credentials > OAuth constent screen, insert the name of your App and click save

f) Go to API Manager > Credentials, click on Create credentials and choose OAuth client ID

g) Select Web application as application type and pick an appropriate name. Enter/paste the Redirect URI as Authorized redirect URI and create your credentials. After thatClick Save

  1. You should now see the Client Id and Client secret. You'll need both in the next step.

Add credentials to Selfbits

a) Go back to your Selfbits BaaS dashboard and select your project.

  1. Select Authentication > Auth Provider > Active > Google > Configure

b) Insert the Google Client Id and Client Secret and click on Save


Connection Test - Preparation

  • skip this and go to '5. Connection Test' if this is your first connection test of an auth provider at Selfbits

Attention: If you want to test registration with different OAuth Providers , please remember that our database uses the email-address of your OAuth Provider as primary key. That means you can register only with OAuth Providers with different account email addresses. But its possible to map them later in the app. If you want to test registration with different OAuth providers with the same email here in the live demo, you have to delete the user with this email address

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Authentication > User.

b) Delete the user with the same email-address as your Google-Account.


Connection Test

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Templates

b) Click in the Livedemo on the Google Logo. If you will be redirected to the Dashboard of the "Live Demo" the connection was successfully.

c) Go to your Selfbits BaaS dashboard and select your project. And go to Authentication > User. You should now find there your github user you registered to Selfbits.


Authentication with Google is now set up for your project. You can trigger authentication from the SDK or one of our starter apps to make sure that it works.

For further information regarding Google OAuth APIs visit the Google developers page