-
Notifications
You must be signed in to change notification settings - Fork 3
SSO Configuration
- Navigate to the Google Cloud Console.
- Go to APIs & Services > Credentials > Create Credentials.
- Create a new OAuth Client ID.
- Configure the allowed domains:
-
Authorized JavaScript origins:
https://<your-domain> -
Authorized redirect URIs:
https://<your-domain>/auth/google/callback
-
Authorized JavaScript origins:

- Navigate to the GitHub Developer Settings.
- Go to OAuth Apps > New OAuth App.
- Fill in the required fields:
- Application name: Your application name
-
Homepage URL:
https://<your-domain> - Application description: Your application description
-
Authorization callback URL:
https://<your-domain>/auth/github/callback

Detailed Guides
Adding Google sign-in to your site simplifies the login process for your users, allowing them to sign in with a single click. To integrate Google OAuth, you'll need a Client ID and a Client Secret.
Note: You must be signed in to your Google account to generate these credentials.
Go to the Google Developers Console page.
Click on the Select a project dropdown at the top, select New Project, and click Create.

Enter your Project name and click Create.

Click OAuth consent screen in the left sidebar. Choose the User Type (usually "External") and click Create.

Provide the following details:
- Application name: The name of your website or app.
- Support email: Your contact email.
- Authorized domain: Your website's domain.
- Developer contact information: Your email address.
Click Save and Continue.

Complete all four steps in the OAuth consent screen wizard and then click Back to Dashboard.

Go to the Credentials tab, click Create Credentials, and select OAuth client ID from the dropdown menu.

Under Application type, select Web application and enter a name for your OAuth 2.0 client.

- Authorized JavaScript origins: Enter your site's URL.
- Authorized redirect URIs: Enter the URL where users should be redirected after authenticating with Google.
Click Create to proceed.

Your Client ID and Client Secret will be generated. Copy and save them immediately, as the secret will not be shown again once you leave the page.

Adding GitHub sign-in to your site simplifies the login process for your users, allowing them to sign in with a single click. To integrate GitHub OAuth, you'll need a Client ID and a Client Secret.
Note: You must be signed in to your GitHub account to generate these credentials.
Go to the GitHub Developer Settings page.
Click on OAuth Apps in the left sidebar, then click the New OAuth App button.

Fill in the following details:
- Application name: The name of your website or app.
-
Homepage URL: The full URL to your site's homepage (e.g.,
https://example.com). - Application description: (Optional) A brief description of your app.
-
Authorization callback URL: The URL where GitHub should redirect users after authentication (e.g.,
https://example.com/login/github/callback). - Enable Device Flow: (Optional) Enable this if your app needs to support device authentication.
Click Register application to proceed.

Once the application is created, your Client ID will be displayed automatically on the application settings page.
The Client Secret is not created by default. To generate one, click the Generate a new client secret button.

Your new client secret will be displayed. Copy and save it immediately, as it will not be shown again once you leave the page.
