# Google

### Google as OAuth Identity Provider

To use Google as Auth Provider, you must setup a so-called "OAuth 2.0 Client ID". You can do so in the Google Cloud Console. <https://console.cloud.google.com/apis/credentials>

<figure><img src="https://1375341043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzo5R6EJIlCfRyDLbDnBv%2Fuploads%2Fgit-blob-61b238426b8306a3814d295e6c8926c8a4649b19%2FGoogle%20OAuth%20Credencials.png?alt=media" alt=""><figcaption><p>You can create many OAuth 2.0 Client IDs</p></figcaption></figure>

Use the Form to create your Client ID (app registration)

<figure><img src="https://1375341043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzo5R6EJIlCfRyDLbDnBv%2Fuploads%2Fgit-blob-3092cba277ea66fe387b4f4368d0e6feff35afc3%2FGoogle%20create%20Client%20ID%20(1).png?alt=media" alt=""><figcaption><p>You can set multiple redirect URLs</p></figcaption></figure>

On the right side, you will find the Client-ID and Client Secret. Now you go back to OpenFlower Settings > Auth Providers and click "Add OAuth Provider" and select Google from the list of Auth Providers.

<figure><img src="https://1375341043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzo5R6EJIlCfRyDLbDnBv%2Fuploads%2Fgit-blob-db59be8fd6bed0d1dad248f1dd96dbc6f172cee1%2FOAuth%20Add%20Provider.png?alt=media" alt=""><figcaption><p>select Google as Auth Provider from the List</p></figcaption></figure>

You can now copy and paste the Client ID and Client Secret from the Google Cloud Console.

<figure><img src="https://1375341043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzo5R6EJIlCfRyDLbDnBv%2Fuploads%2Fgit-blob-2be61c7211f1f0d573313364774e0347e8b1a0c0%2FOAuth%20Add%20Google.png?alt=media" alt=""><figcaption></figcaption></figure>

Thats it! Now you can invite new Users to OpenFlower. They can choose Google to Sign Up (register) or Sign in / log in.

<figure><img src="https://1375341043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzo5R6EJIlCfRyDLbDnBv%2Fuploads%2Fgit-blob-6e11680fa1b589813621859c2e178a5dd541bd45%2FOAuth%20Register%20with%20Invite%20Link%20(1).png?alt=media" alt=""><figcaption><p>Based on an invite Link, users can now login with the OAuth provider Google.</p></figcaption></figure>
