Twitter/X Social Login
Allow WiFi guests to authenticate on your captive portal using their Twitter/X accounts with OAuth 2.0, enabling quick access and profile data collection.
Overview
Twitter/X social login provides:
- Quick authentication via Twitter/X accounts
- Profile data collection (username, name)
- Social engagement potential
- Broad user base access
Prerequisites
- IronWiFi account with captive portal
- Twitter/X Developer account
- Twitter API v2 access (Elevated or higher)
Important Note on API Access
Twitter/X has changed its API access tiers:
- Free tier: Very limited (may not support OAuth)
- Basic tier: ($100/month) OAuth support
- Pro tier: ($5000/month) Full features
Verify your access level supports OAuth 2.0 User Authentication.
Twitter Developer Setup
Create Developer Account
- Go to developer.twitter.com
- Apply for developer access
- Complete application process
- Wait for approval
Create Project and App
- In Developer Portal, click Projects & Apps
- Create a new Project
- Create an App within the project
- Note your:
- Client ID
- Client Secret
Configure OAuth 2.0
- In app settings, go to User authentication settings
- Click Set up
- Configure:
- App permissions: Read (minimum)
- Type of App: Web App
- Callback URI:
https://auth.ironwifi.com/callback/twitter - Website URL: Your company website
IronWiFi Configuration
Step 1: Add Twitter Provider
- Log in to IronWiFi Console
- Navigate to Networks > Captive Portals
- Select your captive portal
- Go to Authentication Providers
- Click Add Provider > Twitter/X
Step 2: Configure OAuth
Enter credentials:
- Client ID: Your Twitter OAuth 2.0 Client ID
- Client Secret: Your Twitter Client Secret
- Redirect URI: Confirm matches Twitter app config
Step 3: Configure Scopes
Select requested permissions:
- - Read tweets
tweet.read - - Read user profile
users.read - - Refresh tokens (optional)
offline.access
Data Collection
Available Data
Twitter API provides:
| Field | Description |
|---|---|
| Twitter user ID |
| Display name |
| Twitter handle (@username) |
| Profile picture URL |
| Verification status |
| Bio (if permissions allow) |
Data Limitations
Note these limitations:
- Email requires special approval from Twitter
- Some fields require elevated access
- Rate limits apply
Authentication Flow
User Experience
- Guest connects to WiFi
- Captive portal shows "Continue with X" button
- Guest clicks and redirects to Twitter/X
- Logs in and authorizes app
- Redirected back, WiFi access granted
OAuth 2.0 with PKCE
Twitter uses OAuth 2.0 with PKCE:
Splash Page Integration
Add Twitter Button
Was this page helpful?