This guide outlines the steps required to set up and obtain Single Sign-On (SSO) credentials for Google and Microsoft Azure AD to integrate with your application.
If you choose external you may need to verify your app.
Once you have create your Oauth 2.0 Cliend ID, you can click the download icon to view your client ID and secret.
Provider | Client ID | Client Secret | Redirect URI |
[Your Google Client ID] | [Your Google Client Secret] | https://yourdomain.com/auth/google/callback | |
Microsoft | [Your Microsoft Client ID] | [Your Microsoft Client Secret] | https://yourdomain.com/auth/microsoft/callback |
Additional Notes
- Ensure the OAuth consent screen information is complete to avoid verification issues.
- Keep your Client Secret secure; do not expose it in client-side code.
- Adjust OAuth scopes according to your application’s data requirements.
Once you have obtained the Client ID and Client Secret from Google and Microsoft, follow these steps to configure them in the application:
1 Click Google SSO Enabled
2 Google Client ID: Paste the Client ID obtained from Google Cloud Console.
3 Google Client Secret: Paste the Client Secret.
4 Google Redirect URI: Use the redirect URI you set during the Google OAuth configuration.
- Example: https://yourdomain.com/auth/google/callback
5 Click Save Google Configuration
1 Click Microsoft SSO Enabled
2 Microsoft Client ID: Paste the Application (client) ID obtained from Azure AD.
3 Microsoft Client Secret: Paste the Client Secret.
4 Microsoft Redirect URI: Use the redirect URI you set during the Azure AD application configuration.
- Example: https://yourdomain.com/auth/microsoft/callback
5 Click Save Google Configuration
Issue | Possible Solution |
Error: "Invalid Client ID or Secret" | Verify that the Client ID and Client Secret are correctly copied without extra spaces or typos. |
Error: "Redirect URI Mismatch" | Ensure that the redirect URI in the SSO configuration matches exactly with the one set in Google/Microsoft. |
Error: "Permission Denied" | Check that all required OAuth scopes (email, profile, etc.) are correctly configured. |
By completing these steps, your application will be successfully integrated with Google and Microsoft SSO for seamless user authentication.
Once the SSO credentials have been configured, users can link their accounts with Google or Microsoft for a seamless sign-in experience.