Need help configuring OAuth2 settings for Google Analytics?
Understanding OAuth2 Fields
- Client ID & Client Secret: Obtain these from your OAuth provider's developer console (e.g., Google Cloud Console for Google Analytics). Create an OAuth 2.0 Client ID for a web application to get these credentials.
- Auth URL: The URL where users are redirected to authenticate (e.g., for Google, this might be
https://accounts.google.com/o/oauth2/v2/auth).
- Token URL: The URL used to exchange an authorization code for an access token (e.g., for Google, this might be
https://oauth2.googleapis.com/token).
- User Info URL: The API endpoint to fetch the logged-in user’s profile data (e.g., for Google, this might be
https://www.googleapis.com/oauth2/v3/userinfo).
- Redirect URL: The URL where the user is redirected after authentication. It must exactly match the one configured in your OAuth provider’s settings (case-sensitive). This is typically provided by user role mangament and should be added to your provider’s authorized redirect URIs.