LinkedIn Social Login
Enable one-click WiFi authentication using LinkedIn credentials on your captive portal, ideal for capturing professional contacts at business venues and conferences.
Overview
LinkedIn social login provides:
- Professional authentication - Verify business guests
- Profile data collection - Capture professional information
- Frictionless access - One-click login
- Lead generation - Collect business contacts
Prerequisites
- IronWifi account with captive portal
- LinkedIn Developer account
- LinkedIn App configured for OAuth 2.0
LinkedIn App Setup
Create LinkedIn App
- Go to LinkedIn Developer Portal
- Click Create app
- Fill in app details:
- App name: Your WiFi network name
- LinkedIn Page: Select or create company page
- App logo: Upload your logo
- Legal agreement: Accept terms
- Click Create app
Configure OAuth 2.0
- In your app, go to Auth tab
- Under OAuth 2.0 settings:
- Add Authorized redirect URLs:
https://splash.ironwifi.com/api/linkedin/callback
- Add Authorized redirect URLs:
- Note your credentials:
- Client ID
- Client Secret
Request Permissions
- Go to Products tab
- Request access to Sign In with LinkedIn using OpenID Connect
- Wait for approval (usually instant for basic profile)
IronWifi Configuration
Step 1: Add LinkedIn Provider
- Log in to IronWifi Console
- Navigate to Networks > Captive Portals
- Select your captive portal
- Go to Authentication Providers
- Click Add Provider > LinkedIn
Step 2: Enter Credentials
Configure LinkedIn OAuth:
- Client ID: Your LinkedIn Client ID
- Client Secret: Your LinkedIn Client Secret
- Redirect URI: Pre-filled by IronWifi
Step 3: Configure Permissions
Select data to request:
- Profile (default): Name, profile picture
- Email (recommended): Email address
- Position: Current job title and company
Authentication Flow
- Guest connects to WiFi
- Captive portal displays login options
- Guest clicks "Sign in with LinkedIn"
- Redirected to LinkedIn authorization
- Guest approves access
- Redirected back to captive portal
- WiFi access granted
Splash Page Integration
LinkedIn Button
Add LinkedIn sign-in button:
<a href="{{linkedin_auth_url}}" class="social-btn linkedin">
<img src="linkedin-icon.svg" alt="LinkedIn">
Sign in with LinkedIn
</a>
<style>
.social-btn.linkedin {
background: #0077B5;
color: white;
padding: 12px 24px;
border-radius: 4px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
}
</style>
Multiple Social Options
Offer multiple authentication methods:
<div class="social-login">
<h3>Sign in with</h3>
<a href="{{linkedin_auth_url}}" class="social-btn linkedin">LinkedIn</a>
<a href="{{google_auth_url}}" class="social-btn google">Google</a>
<a href="{{facebook_auth_url}}" class="social-btn facebook">Facebook</a>
</div>
Data Collection
Available Profile Data
LinkedIn provides (based on permissions):
| Field | Description |
|---|---|
| id | Unique LinkedIn ID |
| firstName | First name |
| lastName | Last name |
| profilePicture | Profile photo URL |
| emailAddress | Primary email |
| headline | Professional headline |
| positions | Work history |
Data Usage
Collected data can be:
- Stored in IronWifi user records
- Exported for CRM integration
- Used for analytics
- Synced to marketing platforms
Lead Generation
CRM Integration
Export LinkedIn data to your CRM:
- Configure webhook in IronWifi
- Send authentication data to CRM
- Create leads automatically
Webhook Payload
{
"event": "authentication",
"provider": "linkedin",
"user": {
"linkedin_id": "abc123",
"email": "user@company.com",
"first_name": "John",
"last_name": "Doe",
"headline": "Software Engineer at Tech Corp",
"company": "Tech Corp",
"profile_url": "https://linkedin.com/in/johndoe"
},
"session": {
"mac_address": "AA:BB:CC:DD:EE:FF",
"network": "Conference WiFi",
"timestamp": "2024-01-15T10:30:00Z"
}
}
Analytics
Track LinkedIn Logins
Monitor in IronWifi console:
- LinkedIn authentication count
- User demographics
- Company information
- Login success rates
Integration with Google Analytics
Track social login events:
// On successful LinkedIn auth
gtag('event', 'login', {
method: 'LinkedIn'
});
Use Cases
Conference WiFi
Perfect for business events:
- Verify attendee identity
- Collect professional contacts
- Network with attendees
- Generate leads for sponsors
Co-working Spaces
Professional environment authentication:
- Verify members
- Track usage patterns
- Professional networking
B2B Venues
Hotels, airports, business centers:
- Business guest verification
- Lead generation
- Premium service identification
Troubleshooting
"App Not Authorized"
- Verify LinkedIn app is approved
- Check OAuth 2.0 settings
- Confirm redirect URI matches exactly
- Verify permissions are granted
User Data Not Captured
- Check permission scopes
- Verify field mapping in IronWifi
- User may have restricted profile visibility
- Some data requires additional permissions
Login Loop
- Clear browser cookies
- Verify redirect URI configuration
- Check for JavaScript errors
- Test in incognito mode
Privacy Considerations
Transparency
Inform users what data is collected:
<p class="privacy-notice">
By signing in with LinkedIn, you agree to share your name
and email address for WiFi access.
<a href="/privacy">Privacy Policy</a>
</p>
Data Retention
- Store only necessary data
- Implement retention policies
- Allow data deletion requests
- Comply with GDPR/CCPA
Related Topics
- Authentication Providers
- Google Integration - Google social login
- Captive Portals