Google OAuth Integration
AeroEBT supports OAuth 2.0 authentication with Google accounts. This guide is designed for IT administrators configuring Google sign-in for end users.
Overview
Google OAuth allows users to sign in to AeroEBT using their Google accounts without requiring enterprise SSO setup. This is ideal for individual users or organizations that don't require SAML-based single sign-on.
Prerequisites
- Google Cloud Platform (GCP) account with project creation access
- Organization-level or project-level access to AeroEBT dashboard
- Understanding of OAuth 2.0 flow
Step 1: Create a Google Cloud Project
- Navigate to the Google Cloud Console
- Click Select a project > New Project
- Enter a project name (e.g., "AeroEBT Integration")
- Click Create
Step 2: Configure OAuth Consent Screen
- In your Google Cloud project, navigate to APIs & Services > OAuth consent screen
- Select External user type (unless you have a Google Workspace account)
- Fill in the required application information:
- App name: AeroEBT
- User support email: Your support email
- Developer contact information: Your email address
- Click Save and Continue
- On the Scopes page, click Save and Continue
- On the Test users page, you can add test users if needed
- Click Save and Continue to finish
Step 3: Create OAuth 2.0 Credentials
- Navigate to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Select Web application as the application type
- Configure the OAuth client:
- Name: AeroEBT Web Client
- Authorized JavaScript origins:
https://[your-instance].ebt.skydynamics.aerohttps://[your-instance].ebt.skydynamics.aero/auth/v1/callback
- Authorized redirect URIs:
https://[your-instance].ebt.skydynamics.aero/auth/v1/callback
- Click Create
Step 4: Retrieve Credentials
After creating the OAuth client, you'll see a dialog with:
- Client ID: Copy this value
- Client Secret: Copy this value (you'll only see this once)
Important: Save these credentials securely. You'll need them in the next step.
Step 5: Configure Google OAuth in AeroEBT
- Navigate to your AeroEBT dashboard
- Go to Settings > Authentication > Providers
- Find Google in the list of providers
- Click Configure or Enable
- Enter the following information:
- Client ID: Paste the Client ID from Step 4
- Client Secret: Paste the Client Secret from Step 4
- Click Save
Step 6: Test Google Sign-In
- Navigate to the AeroEBT sign-in page
- Click Sign in with Google
- You should be redirected to Google's authentication page
- After granting permissions, you should be redirected back to AeroEBT
- Verify that you're successfully signed in
Configuration Options
Scope Configuration
By default, AeroEBT requests the following OAuth scopes:
openid: OpenID Connect authenticationemail: Access to user's email addressprofile: Access to user's basic profile information
These scopes provide the minimum necessary information for authentication.
User Information Mapping
AeroEBT maps the following Google user information:
- Email: Used as the primary user identifier
- First Name: Extracted from
given_name - Last Name: Extracted from
family_name - Profile Picture: Extracted from
picture(if available)
Security Considerations
Client Secret Security
- Never commit the Client Secret to version control
- Store secrets in secure environment variables
- Rotate secrets regularly (every 90 days recommended)
- Use different credentials for development and production environments
Domain Restrictions
If your organization wants to restrict Google sign-in to specific domains:
- In Google Cloud Console, go to APIs & Services > OAuth consent screen
- Under Publishing status, configure User Type and Test users
- For production, submit your app for verification if using restricted scopes
Redirect URI Validation
Ensure that redirect URIs are exactly:
https://[your-instance].ebt.skydynamics.aero/auth/v1/callback
Do not include trailing slashes or additional parameters in the redirect URI configuration.
Troubleshooting
Common Issues
"Redirect URI mismatch" error
- Verify the redirect URI in Google Cloud Console exactly matches:
https://[your-instance].ebt.skydynamics.aero/auth/v1/callback - Ensure there are no trailing slashes or typos
- Check that both JavaScript origins and redirect URIs are configured correctly
"Access blocked: This app's request is invalid"
- Verify the OAuth consent screen is properly configured
- Check that your app is not in a restricted state
- Ensure test users are added if the app is in testing mode
Users cannot sign in
- Verify Client ID and Client Secret are correctly entered in AeroEBT
- Check that the Google Cloud project is active
- Ensure OAuth consent screen is published or test users are configured
Token expiration issues
- Google OAuth tokens automatically refresh
- If issues persist, verify refresh token is being stored correctly
- Check that the OAuth client is not deleted or disabled
Debugging Steps
- Check browser console: Look for JavaScript errors
- Inspect network requests: Verify redirects are happening correctly
- Review Google Cloud logs: Check API usage and error logs
- Verify credentials: Ensure Client ID and Secret are active
Production Deployment
App Verification
For production use with external users, you may need to submit your OAuth app for verification:
- Complete all required fields in OAuth consent screen
- Submit verification request in Google Cloud Console
- Wait for Google's review and approval
- Ensure compliance with Google's OAuth verification policies
Domain Verification
Verify your domain ownership:
- In Google Cloud Console, go to APIs & Services > OAuth consent screen
- Add and verify your domain
- This adds trust indicators for users signing in
Support
For additional assistance with Google OAuth configuration, please contact:
- Your AeroEBT support representative
- Email: support@skydynamics.aero
- Documentation: https://docs.ebt.skydynamics.aero