Search Results :

×

Guide to Integrate Rest API/ Mobile SSO with Social Login plugin

Guide to Integrate Rest API/ Mobile SSO with Social Login plugin


What is Social Login REST API / Mobile SSO?

Social Login is a Single Sign-On where users can use the credentials from social network providers like Google, Facebook, Twitter, etc to login into a third-party application without the need of creating a specific account for the new app. It helps in making the login process user-friendly.

If you want to have Single Sign-On (SSO) on any Android/IOS application through any social providers like Facebook, Google, Discord, Linkedin, Instagram, Twitter, etc, then we provide a solution through JWT authentication using our OAuth Client and REST API Authentication / Mobile SSO plugin.

Login Userflow for sso into mobile app

We will provide a JWT token that will have all the required user info through which the user can perform Login to your mobile application. Social Login in Mobile application helps in increasing user registrations as it is a one-click process and does not require much effort from the user side. It also helps in having users with genuine emails and password regeneration is also handled by the social provider.


WordPress Rest API Authentication
By miniOrange

WordPress REST API Authentication plugin provides the security from unauthorized access to your WordPress REST APIs.

Know More

How to integrate REST API / Mobile SSO with Social Login Solution?

miniOrange provides OAuth Client and Rest API / Mobile SSO using which your website users can log in/register via social media platforms to your mobile application through JWT authentication. You can also store your mobile application users in your WordPress user table too.

A communication channel is needed between your mobile application user and your social provider like Google, Facebook, Twitter, etc. This will show a login window to your user where the user will put in his user credentials and login and after authorization user will be provided with a secure token containing user information that will be used for user validation.

After the token is received, REST API Authentication will check if the user is allowed access and if the user is registered in WordPress.

Social Login SSO in the mobile application is an easy process with the following few steps:
  • User selects a social provider of his/her choice after opening your application.
  • A request to let the user login is sent to the social network provider in the web-view window.
  • On successful validation of user details by the social network provider, a user will get access to your application and a JWT token will get generated which you can use to fetch user details and save them in your WordPress.

Steps to Configure Social Login REST API / Mobile SSO solution into WordPress (WP)

Step 1: Setup miniOrange Integration REST API plugin For Mobile Single Sign-on (SSO)

  • Download the miniOrange Oauth Client and REST API / Mobile SSO plugin and Activate the plugin on your WordPress installation.
  • Once activated, go to Oauth Client plugin Dashboard to select your desired Social Login provider from the list. You can also use the “Search Bar” to find your needed social app. We support 40+ applications and by default Facebook and Google are integrated.
  • oauth-client-dashboard-with-google
  • You can Setup any application. For example, we will setup Google in this Guide.
  • Enable Google and Paste Client ID and Client Secret in the respective fields. Click on the Save button.

Step 2: Connect REST API / Mobile SSO to REST API plugin

    hit api from mobile for social login mobile SSO setup
  • For mobile, you need to hit the API
    <your-wordpress-site>?option=oauthredirect&app_name=<application-name>&redirect_url=<redirect-url-of-your-wordpress-site>&momobilesso=yes
  • After clicking on the Social Login provider button (Login with Google in this case) on the mobile app user will be redirected to their social applications’ login page which will open in web view through which users can log in with their social credentials.
  • jwt token in URL decode jwt token for userinfo perform user mobile login
  • After successful login, you will receive the JWT token in the URL which you have to catch on your own and you can decode the token to get user information. You can use this token to call the WordPress REST APIs securely.

miniorange img  Recommended for OAuth / OpenID Connect Single Sign On

WordPress Login ( SSO ) with Azure AD, Azure B2C, AWS Cognito, Okta, Ping, Clever, WSO2, Onelogin, Keycloak, many OAuth & OpenID Providers [24×7 SUPPORT]

 Tested with 6.0

miniorange img  Recommended for WordPress REST API Authentication

REST API Authentication will make your WordPress login endpoints secure from unauthorized access. [24/7 SUPPORT]

 Tested with 6.0

Additional Resources

Custom Requirements

If you want to purchase the miniOrange Integration SSO Plugin (Oauth Client and REST API / Mobile SSO) combo then contact us at apisupport@xecurify.com. We will be happy to assist you and help you with your concerns and queries.
Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com