This page shows you how to setup OAuth using a generic OAuth provider. Click here to see how to setup OAuth with Instagram.
***Before starting this process, be sure you have collected all the information you need from your OAuth provider.
3. Register the app with your OAuth Provider.
- Go to your OAuth provider.
- If your provider accepts multiple Redirect URIs per client (see question #1), include both Redirect URIs (Platform and Device) when you register. If your provider does not accept multiple Redirect URIs per client, register once using the Platform Redirect URI and once using the Device Redirect URI.
4. Find your Client ID(s) and Client Secret(s)
- Find your Client ID(s). Copy and paste into a document or simply leave the browser tab open.
- Find your Client Secret(s), if applicable (see question #6). Copy and paste into a document or simply leave the browser tab open.
7. Enter the base Auth URL
- Find your provider’s Auth URL (see question #2).
- If the Auth URL includes a question mark, copy the URL from the beginning up to the question mark.
- For example, you might find something like this:
- https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
- You would want to copy this:
- For example, you might find something like this:
- In the MobileSmith platform, paste into the ‘Auth URL’ field.
10. Enter the Scope data (Optional)
- In the MobileSmith platform, enter Scope data in the “Scope” field.
12. Authenticate
- On the Access Manager configuration page (MobileSmith), click “Verify”. This will save your settings and initiate the platform authentication process.
- Depending on the OAuth provider, you may see a popup asking you to login and/or authorize.
**NOTE: For a single OAuth provider, the Auth URL, Access URL, and Token settings will be the same for every app, while the Client ID and Client Secret will be different. For example, if you created two separate apps in the MobileSmith platform and wanted to use Instagram as the OAuth provider for both apps, you would use the exact same Auth URL, Access URL, and Token settings in both of your apps. You would need to register each app separately with Instagram, which would give you two different Client IDs and two different Client Secrets
The Redirect URI is used for two purposes:
- First, you will need it to register the app with the Auth Provider
- Second, it will be used by the Auth Provider to ‘redirect’ a user (once successfully authenticated) from the login page back to the app
**NOTE: There are two Redirect URI fields. One is to allow the platform (in the browser) to confirm that your OAuth settings are correct. The other will be used by the app once installed on a mobile device.
Click here to see the above steps used with Instagram.
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
|