Authentication Integrations
Secure your Astrio applications with Google OAuth and GitHub authentication. Simple, reliable, and trusted authentication methods that your users already know and trust.Supported Providers
Google OAuth
Most popular social login with extensive user base
GitHub OAuth
Perfect for developer-focused applications
Google OAuth
Why Google OAuth?
Google OAuth is the most popular social login provider, offering:- Wide User Base - Billions of users worldwide
- Trusted Brand - Users trust Google with their data
- Rich Profile Data - Access to email, name, profile picture
- Easy Setup - Simple configuration process
Setup Process
Google Cloud Console Setup
-
Navigate to Google Cloud Console
- Go to console.cloud.google.com
- Create a new project or select existing one
-
Enable Google+ API
- Go to “APIs & Services” → “Library”
- Search for “Google+ API” and enable it
-
Create OAuth Credentials
- Go to “APIs & Services” → “Credentials”
- Click “Create Credentials” → “OAuth 2.0 Client IDs”
- Choose “Web application” as application type
-
Configure OAuth Consent Screen
- Set app name, user support email, and developer contact
- Add authorized domains
- Configure scopes (email, profile, openid)
Configuration
Required Credentials:User Data Available
When users authenticate with Google, you get access to: Profile Information:- Email Address - Primary email from Google account
- Full Name - User’s first and last name
- Profile Picture - User’s Google profile photo
- Locale - User’s language and region preferences
- Google Account ID - Unique identifier for the user
- Email Verification - Whether email is verified
- Account Type - Personal or Google Workspace account
GitHub OAuth
Why GitHub OAuth?
GitHub OAuth is ideal for:- Developer Tools - Perfect for developer-focused applications
- Open Source Projects - Connect with the open source community
- Technical Users - Developers already have GitHub accounts
- Repository Access - Access to user’s public repositories
Setup Process
GitHub Developer Settings
-
Navigate to GitHub Settings
- Go to GitHub.com → Settings → Developer settings
- Click “OAuth Apps” → “New OAuth App”
-
Configure OAuth App
- Application name: Your app name
- Homepage URL: Your app’s homepage
- Authorization callback URL:
https://your-app.astrio.app/auth/github/callback
-
Set Permissions
- User permissions: Email addresses (read-only)
- User permissions: Profile (read-only)
Configuration
Required Credentials:Available Scopes
Basic Scopes:- user:email - Access to user’s email addresses
- read:user - Read access to user profile
- repo - Full repository access (public and private)
- workflow - GitHub Actions workflow access
- admin:org - Organization administration access
User Data Available
When users authenticate with GitHub, you get access to: Profile Information:- Username - GitHub username
- Full Name - User’s real name
- Email Addresses - All email addresses associated with account
- Profile Picture - User’s GitHub avatar
- Bio - User’s GitHub bio
- GitHub ID - Unique numeric identifier
- Account Type - User or Organization
- Public Repositories - List of public repositories
- Followers/Following - Social connections
Authentication Flow
OAuth 2.0 Flow
The authentication process follows the standard OAuth 2.0 authorization code flow:Security Features
Secure Tokens
JWT tokens with automatic refresh
State Validation
Prevent CSRF attacks with state parameter
HTTPS Only
All authentication over secure connections
Token Storage
Secure server-side token storage
User Management
User Profiles
Comprehensive user profile management: Profile Features:- Automatic Profile Creation - Profiles created on first login
- Profile Updates - Sync profile data on each login
- Custom Fields - Add custom user attributes
- Profile Pictures - Automatic avatar from provider
Session Management
Secure session handling and management: Session Features:- JWT Tokens - Secure JSON Web Tokens for authentication
- Refresh Tokens - Automatic token refresh for long sessions
- Session Timeout - Configurable session expiration
- Multi-Device Support - Login from multiple devices
Integration Examples
React Component Example
API Authentication
User Data Access
Getting Started
Quick Setup
Get authentication working in minutes:Best Practices
Start with Google
Google OAuth has the broadest user compatibility
Add GitHub Later
Add GitHub for developer-focused features
Handle Errors
Implement proper error handling for auth failures
User Feedback
Provide clear feedback during authentication process
Migration Guide
Migrating from existing authentication system?Our authentication experts can help you migrate from any authentication system to Astrio. Contact support@astrio.app for migration assistance.

