"Lana Single Sign On" v1.0.0 Documentation by "Lana Codes"
"Lana Single Sign On" is an OAuth 2.0 client, which was primarily created for the "Lana Passport" OAuth 2.0 server plugin.
The "Lana Single Sign On" plugin is WordPress 6.0 compatible.
It has been tested on the following browsers:
Support
If you have any more questions, feel free to contact us at: https://lana.codes/contact-us/
Created: 07/28/2022
By: Lana Codes
E-mail: [email protected]
"Lana Passport" is a premium OAuth 2.0 server WordPress plugin.
The "Lana Single Sign On" plugin with "Lana Passport" plugin provide that the user can log in to the WordPress client website via "Single Sign On" button
Product: https://lana.codes/product/lana-passport/
Online documentation: https://lana.solutions/documentation/lana-passport/
1. Install WordPress
Download and Install WordPress 4.5 (or higher).
2. Upload Plugin via FTP
Upload "Lana Single Sign On" plugin folder via FTP into /wp-content/plugins directory.
or
2. Upload Plugin in WordPress Admin
3. Active plugin
Plugin files
"Lana Single Sign On" plugin: /lana-sso.zip
The plugin is also available on WordPress.org: https://wordpress.org/plugins/lana-sso/
Lana Single Sign On general overview
The "Lana Single Sign On" plugin adds a "Single Sign On" button to the WordPress login interface.
By clicking the button, the client WordPress website uses the OAuth 2.0 server for login.
The "Lana Single Sign On" plugin can create a user during Single Sign On login if registration is enabled in the general WordPress settings.
Lana Single Sign On settings
SSO URI
This endpoint handles the OAuth request with authorization code grant type.
You must set this URI in the Redirect URI field of the OAuth server.
Client Settings
Endpoint Settings
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:
OAuth Server with Lana Passport plugin
In the example in the documentation, the OAuth Server WordPress website URL:
https://lana.solutions/lana-passport/
This website provides the authentication server.
OAuth Client with Lana Single Sign On plugin
In the example in the documentation, the OAuth Client WordPress website URL:
https://lana.solutions/lana-sso/
This website will connect to the other website using OAuth and use Single Sign On.
Note: At the bottom right of the screenshots, it is marked from which website.
The settings step by step:
1. Copy the endpoints from the OAuth Server
You need to copy three URLs from the "Lana Passport" Status page:
These are required in the client settings.
2. Set the endpoints in the OAuth Client
You need to set the three URLs in the "Lana Single Sign On" Settings page:
3. Copy the SSO URI from the OAuth Client
You need to copy the SSO URI from the "Lana Single Sign On" Settings page.
This URI will be used by the server.
4. Set the Redirect URI in the OAuth Server
You need to add a new client to the "Lana Passport".
When adding a client, paste the previously copied SSO URI into the Redirect URI.
Click the "Publish" button and the server will generate the client.
5. Copy the Client ID and Client Secret from the OAuth Server
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.
Copy these tokens because you need to enter them in the OAuth client settings.
6. Set the Client ID and Client Secret in the OAuth Client
jQuery: https://jquery.com/