To set up Google OAuth provider, please go to Google API console and log in using your Google account.
Then navigate to OAuth consent screen tab to configure OAuth consent screen.
And register your Google app.
Then navigate to Credential tab.
And create Credential for your app:
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
Add a Google OAuth provider and fill the Client ID
and Client Secret
in your Casdoor
Now you can use Google as third party service to complete authentication.