Connect with OAuth

OAuth is a standard protocol used for authentication, supported by a number of providers. To set up OAuth as a login method for your campaigns, you’ll need to set up an app within MyWiFi. 

Each OAuth provider may be slightly different, but will generally follow about the same process.

Required:

  • Active MyWiFi subscription.
  • Active account with an OAuth Provider

OAuth setup and integration

  1. Create an OAuth app with your provider.

    For example, for Google, go to your Credentials page, then create an OAuth client ID, and then select Web application and choose a name before clicking Create. You can find more details here.

  2. Go to Apps in MyWiFi.
    menu-Apps.JPG
  3. Click Add New App.
    mceclip0.png
  4. Click Others, then choose OAuth.
    mceclip0.png
  5. At the bottom of the window, copy the Redirect URI.
    oauth2.png
  6. In your provider’s dashboard, go to the Whitelist. Add your Custom Social Portal Domain as an Authorized JavaScript origin, and the redirect URI that you just copied from MyWiFi as an Authorized redirect URI.

    For example, in Google, this will look like this

    google_oauth.png

  7. Find the following credentials for your app:

    URL Authorize
    URL Access Token
    URL Resource Owner Details
    Scope

    For example, for Google, these are:

    URL Authorize: https://accounts.google.com/o/oauth2/auth
    URL Access Token: https://oauth2.googleapis.com/token
    URL Resource Owner Details: https://www.googleapis.com/oauth2/v2/userinfo
    Scope: openid profile email

  8. Locate your Client ID and Client Secret in your app.

  9. Go back to the app creation screen in MyWiFi, and enter these details, as well as an internal App Name.

  10. Click Proceed.
    oauth_proceed.png

Enable OAuth Login

Now that your OAuth app is created, you can add OAuth as a login option for your campaigns.

  1. Select Campaigns from the main menu.
    menu-campaigns.JPG
  2. Click Edit Campaign. You can also add OAuth as a login method during campaign creation.
    mceclip0.png
  3. Select the Login tab.
    mceclip8.png

  4. Click Connect with OAuth.
    connect_with_oauth.png

  5. Select Setup.
    mceclip0.png

  6. Choose your OAuth App, and then decide on the Login Button Text.
    mceclip1.png
  7. Click Save Campaign.
    mceclip1.png

  8. Your campaign is then updated, and will begin displaying the new OAuth login option.

Need Help?

If you have any questions, please contact our support team by clicking the support icon located in the bottom right-hand corner of this page.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.