By implementing OAuth 2.0 Server in a WordPress plugin, users can securely and easily authorize access to their data and resources, while maintaining control over their account credentials.
The Single Sign On solution enables users to access multiple applications using a single set of login credentials.
This is how you can configure an OAuth server using the Lana Passport WordPress plugin and an OAuth client using the Lana Single Sign On WordPress plugin.
For this you will need two different WordPress websites.
Lana Passport
OAuth 2.0 Server Plugin for WordPress
By implementing OAuth 2.0 Server in a WordPress plugin, users can securely and easily authorize access to their data and resources, while maintaining control over their account credentials.
The Single Sign On solution enables users to access multiple applications using a single set of login credentials.
Links
Useful links for the Lana Passport.
Online Demo
Documentation
YouTube Tutorial
Case Study
How to configure
This is how you can configure an OAuth server using the Lana Passport WordPress plugin and an OAuth client using the Lana Single Sign On WordPress plugin.
For this you will need two different WordPress websites.
Lana Passport
lana.solutions/lana-passport
WordPress website with Lana Passport plugin
Add a client to Lana Passport
After you have successfully added the client, you can see the client edit, where you can find the generated Client ID and Client Secret tokens.
Client #1
lana.solutions/lana-sso
WordPress website with Lana Single Sign On plugin
Configure
You need to set the three URLs, and the Client ID and Client Secret in the Lana Single Sign On Settings page.
How it works #1
Let's see how it works when
the user is already logged in to the OAuth server website with Lana Passport.
Client #1
lana.solutions/lana-sso
WordPress website with Lana Single Sign On plugin
Login
Just click the Single Sign On button.
Lana Passport
lana.solutions/lana-passport
WordPress website with Lana Passport plugin
Authentication
Since you are already logged in, it will return the user data…
Client #1
lana.solutions/lana-sso
WordPress website with Lana Single Sign On plugin
User
You are automatically logged in as a user…
How it works #2
Let's see how it works when
the user is not logged in to the OAuth server website.
Client #1
lana.solutions/lana-sso
WordPress website with Lana Single Sign On plugin
Login
Just click the Single Sign On button.
Lana Passport
lana.solutions/lana-passport
WordPress website with Lana Passport plugin
Authentication
Since you are not logged in to the Lana Passport website, you must authenticate yourself…
Use your Lana Passport credentials.
Client #1
lana.solutions/lana-sso
WordPress website with Lana Single Sign On plugin
User
You are automatically logged in as a user…
Single Sign On solution with WordPress
Let's take a look at the most important feature and let's see what is needed for it.
Lana Passport
OAuth 2.0 Server
You can add as many clients as you want, without any limits.
Client added to Lana Passport can connect to the OAuth server and use it for user authentication.
Lana Single Sign On
OAuth 2.0 Client
Single Sign On with OAuth 2.0 allows users to authenticate once and access the WordPress client website without the need to enter their credentials.