Google Authentication Setup

 

 

 

 

 

1

Goto https://console.developers.google.com

 

2

Create a new Project

 

3

Click Credentials

4

Click +CREATE CREDENTIALS button

Select OAuth client ID

 

5

Click CONFIGURE CONSENT SCREEN

 

6

Click Internal

Click Create

 

7

Click ADD OR REMOVE SCOPES

 

8

Check what scope to add here https://developers.google.com/identity/protocols/oauth2/scopes

Find the scope by using Filter or add it manually by typing in.
example

 

 

9

Goto Credentials if not taken there directly.

Select Web application as type

Enter the name (could be any name)

 

10

Click Add URI on the Authorized redirect URIs

Enter the callback URL from iHub found on the credentials page.

For iHub Datacenter this is stated on the OAuth2 credential

For iHub cloud this is stated when a OAuth2 credential is added

 

11

Verify that Credential page looks like this

 

 

  1. Goto authentications

  2. Select OAuth and enter a name, click Add

  3. The callback URL (also called redirect above in google are displayed)

  4. Enter the Authorized URL: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent&include_granted_scopes=true

  5. Enter the Access Token URL: https://oauth2.googleapis.com/token

  6. Enter the Client ID from Google Console

  7. Enter the Client Secret from the Google Console

  8. Enter the Scope(s) that iHUB will be allowed to do

  9. Check Include State.

  10. Click Authorize and do the Consent Form.

  11. Once that is done, the iHUB will have access to update the Google resources stated in the Scope.

 



 

 

 

 

1

Navigate to Credentials

Click Create New

 

2

On the popup enter a name of the credential.

Select OAuth2

Click Create

3

Enter Authorization URL:

https://accounts.google.com/o/oauth2/v2/auth

Enter Authorization URL:

https://oauth2.googleapis.com/token

Copy/Paste the client id and client secret from the Google credentials page

Enter a scope.

example https://www.googleapis.com/auth/pubsub more scopes found here https://developers.google.com/identity/protocols/oauth2/scopes

Leave include state Yes checked

 

4

Click Save

This will enable the Authorize button

5

Click on “Click here to authorize”