oauthConfig constant
OAuth Configuration for all platforms ⚠️ WARNING: Demo client IDs below - consuming apps MUST provide their own!
Implementation
static const Map<String, Map<String, dynamic>> oauthConfig = {
'instagram': {
'authUrl': 'https://api.instagram.com/oauth/authorize',
'clientId': 'demo_instagram_client_id', // ⚠️ DEMO ONLY - Replace with your own!
'redirectUri': 'onairos://auth/callback',
'scope': 'user_profile,user_media',
'responseType': 'code',
'hasNativeSDK': false,
},
'youtube': {
'authUrl': 'https://api2.onairos.uk/youtube/authorize',
'clientId': '1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com', // ⚠️ DEMO ONLY!
'redirectUri': 'onairos://auth/callback',
'scope': 'https://www.googleapis.com/auth/youtube.readonly',
'responseType': 'code',
'hasNativeSDK': true,
},
'reddit': {
'authUrl': 'https://api2.onairos.uk/reddit/authorize',
'clientId': 'demo_reddit_client_id', // ⚠️ DEMO ONLY - Replace with your own!
'redirectUri': 'onairos://auth/callback',
'scope': 'identity,read',
'responseType': 'code',
'hasNativeSDK': false,
},
'pinterest': {
'authUrl': 'https://api2.onairos.uk/pinterest/authorize',
'clientId': 'demo_pinterest_client_id', // ⚠️ DEMO ONLY - Replace with your own!
'redirectUri': 'onairos://auth/callback',
'scope': 'boards:read,pins:read',
'responseType': 'code',
'hasNativeSDK': false,
},
'facebook': {
'authUrl': 'https://www.facebook.com/v12.0/dialog/oauth',
'clientId': 'demo_facebook_client_id',
'redirectUri': 'onairos://auth/callback',
'scope': 'public_profile,email',
'responseType': 'code',
'hasNativeSDK': false,
},
'linkedin': {
'authUrl': 'https://api2.onairos.uk/linkedin/authorize',
'clientId': '',
'redirectUri': 'onairos://auth/callback',
'scope': 'openid profile email',
'responseType': 'code',
'hasNativeSDK': false,
},
'gmail': {
'authUrl': 'https://api2.onairos.uk/gmail/authorize',
'clientId': 'demo_gmail_client_id',
'redirectUri': 'onairos://auth/callback',
'scope': 'https://www.googleapis.com/auth/gmail.readonly',
'responseType': 'code',
'hasNativeSDK': false,
},
'email': {
'hasNativeSDK': false,
'authUrl': 'https://api2.onairos.uk/email/authorize',
},
};