Skip to main content

Google

To set up Google OAuth provider, please go to Google API console and log in using your Google account.

Setup Project

Then navigate to OAuth consent screen tab to configure OAuth consent screen.

Configure consent

And register your Google app.

Register app

Then navigate to Credential tab.

Credential

And create Credential for your app:

Create Credentail

Set Authorized redirect URIs correctly

In Google OAuth config, the Authorized redirect URIs must be your Casdoor's callback url, and the Redirect URL in Casdoor should be your application callback url

For more details, please read App config

After create Client ID and obtain Client ID and Client Secrets

Client

Add a Google OAuth provider and fill the Client ID and Client Secret in your Casdoor

Google Provider

Now you can use Google as third party service to complete authentication.