1. Setup the Google project
To set up Google OAuth, please go to the Google API console and log in using your Google account.
![Setup up the project](/assets/images/googlenewproject-a59ca1fcaad82b409e1dceb60996f111.jpg)
2. Configure consent
Next, navigate to the OAuth consent screen tab to configure the OAuth consent screen.
![Configure consent](/assets/images/oauthconsentscreen-09c2355fde1f2a70f46eb0ef9a655398.png)
3. Register your Google app
Register your Google app by following these steps:
![Register the app](/assets/images/appregistration-87849f4455596912d0d0e3e84c208577.png)
4. Create a credential
Goto the Credential tab.
![Credentials](/assets/images/credential-10fe32fc952597a145175b3ed3c6bb31.png)
Create a credential for your app:
![Create a credential](/assets/images/createcredential-e9743928b3600b1e6cad8369e5528796.png)
Ensure you've set Redirect URIs properly
In the Google OAuth configuration, configure the following:
Authorized redirect URIs
must be set to https://auth.sether.com/callbackRedirect URL
should be set to your application's callback URL eg. https://your-app.com/callback
After creating the Client ID, you will obtain the Client ID
and Client Secret
.
![Client](/assets/images/googleclient-831b00ffe8d6bdfd23d43fdbc3fa4838.jpg)
5. Configure SetherAuth
Add the Google OAuth connection and enter the Client ID
and Client Secret
in SetherAuth.
![Google Connection](/assets/images/google-4cc76a5d29d54b56a11eda50f2febdf4.png)
You can now use Google as a third-party service to complete authentication.
6. OneTap Login (Optional)
Once you've added the Google OAuth Connection:
- Navigate to the application page,
- Open the
Connections
tab - Add the Google Connection
- Switch the
Rule
fromDefault
toOne Tap