-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add readme.txt (for WordPress plugin) * init README.md (for GitHub) * use semver * fix security warnings detected by WrodPress Plugin Check
- Loading branch information
Showing
14 changed files
with
731 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<p align="center"> | ||
<a href="https://logto.io" target="_blank" align="center" alt="Logto Logo"> | ||
<img src="https://github.com/logto-io.png" width="100"> | ||
</a> | ||
<br/> | ||
<span><i><a href="https://logto.io" target="_blank">Logto</a> is the better auth and identity infrastructure.</i></span> | ||
</p> | ||
|
||
# Logto WordPress plugin | ||
|
||
This is the official WordPress plugin for [Logto](https://logto.io). It helps you integrate your WordPress site with Logto to enable a single sign-on (SSO) experience for your users. | ||
|
||
## Get started | ||
|
||
TBD | ||
|
||
## Resources | ||
|
||
[](https://logto.io/) | ||
[](https://docs.logto.io/) | ||
[](https://discord.gg/UEPaF3j5e6) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
=== Logto - User Authentication and Authorization === | ||
Contributors: logto | ||
Tags: login,sso,saml,oauth,oidc | ||
Requires at least: 6.0.0 | ||
Tested up to: 6.7.1 | ||
Requires PHP: 8.1 | ||
License: MPL-2.0 | ||
Stable tag: 1.0.0 | ||
|
||
Enable beautiful and secure user authentication, including passwordless, social login, single sign-on, multi-factor authentication (MFA), and more. | ||
|
||
== Description == | ||
Thank you for choosing Logto! By integrating Logto into your WordPress site, you are not only enhancing the security and user experience of your site, but also enabling a unified login experience across all your applications. | ||
|
||
## Why Logto? | ||
|
||
Logto is an open-source Auth0 alternative and a modern authentication and authorization solution for all your applications, including your WordPress sites. With Logto, you can: | ||
|
||
- Enable passwordless login, social login, single sign-on (SSO), and multi-factor authentication (MFA) for your WordPress site. | ||
- Use role-based access control (RBAC) to manage user permissions. | ||
- Support generic OAuth2, OpenID Connect, and SAML protocols. | ||
- Customize the login and registration pages to match your brand. | ||
|
||
In addition, Logto offers dozens of out-of-the-box integrations with popular social login providers, including Google, GitHub, Entra ID (Azure AD), Facebook, and more. Check out the [full list of built-in integrations and social login providers](https://docs.logto.io/integrations). | ||
|
||
## Get started | ||
|
||
If you are new to Logto, we recommend checking out our [introduction page](https://docs.logto.io/) to have a quick overview of Logto concepts and features. | ||
|
||
If you are looking for a step-by-step guide to set up Logto, please refer to our [WordPress plugin quick start guide](https://docs.logto.io/quick-start/wordpress-plugin). | ||
|
||
If you have any questions or feedback, please feel free to: | ||
|
||
- [Join our Discord server](https://discord.com/invite/UEPaF3j5e6) to get help from the community. | ||
- [Open an issue on GitHub](https://github.com/logto-io/wordpress/issues) to report bugs or request features. | ||
- [Subscribe to a paid plan](https://logto.io/) to get access to official support and more features. | ||
|
||
== Installation == | ||
|
||
## From WordPress admin panel | ||
|
||
1. Go to **Plugins** > **Add New**. | ||
2. Search for "Logto". | ||
3. Click **Install Now**. | ||
4. Click **Activate**. | ||
5. Go to **Settings** > **Logto** to configure the plugin. | ||
6. Follow the [quick start guide](https://docs.logto.io/quick-start/wordpress-plugin) to set up Logto. | ||
|
||
## From WordPress.org | ||
|
||
1. Search for "Logto" in the [WordPress.org plugin directory](https://wordpress.org/plugins/). | ||
2. Download the plugin ZIP file. | ||
3. Go to **Plugins** > **Add New** in your WordPress admin panel. | ||
4. Click **Upload Plugin**. | ||
5. Select the downloaded ZIP file and click **Install Now**. | ||
6. Click **Activate**. | ||
7. Go to **Settings** > **Logto** to configure the plugin. | ||
8. Follow the [quick start guide](https://docs.logto.io/quick-start/wordpress-plugin) to set up Logto. | ||
|
||
== Frequently Asked Questions == | ||
|
||
= How to enable passwordless login? = | ||
|
||
To enable passwordless login, ensure you have configured one of the passwordless login methods (email or SMS) in the Logto Console and enabled them in the sign-in experience page. For more information, refer to our [Sign-in and sign-up documentation](https://docs.logto.io/end-user-flows/sign-up-and-sign-in). | ||
|
||
= How to enable social login? = | ||
|
||
To enable social login, ensure you have configured one of the social connectors in the Logto Console and enabled them in the sign-in experience page. For more information, refer to our [Social sign-in documentation](https://docs.logto.io/end-user-flows/sign-up-and-sign-in/social-sign-in). | ||
|
||
= How to add an enterprise SSO connection? = | ||
|
||
To add an enterprise SSO connection, head to the Logto Console and click on "Enterprise SSO" in the left sidebar. Then, click on "Add enterprise connector" and follow the instructions to configure the connector. | ||
|
||
= How to enable multi-factor authentication (MFA)? = | ||
|
||
To enable multi-factor authentication (MFA), head to the Logto Console and click on "Multi-factor auth" in the left sidebar. Then, enable the desired MFA methods and configure them as needed. | ||
|
||
= How to customize the login and registration pages? = | ||
|
||
To customize the login and registration pages, head to the Logto Console and click on "Sign-in experience" in the left sidebar. Then, you can customize the appearance and behavior of the pages as needed. | ||
|
||
== Screenshots == | ||
|
||
1. Logto feature overview. | ||
2. Logto sign-in experience configuration. | ||
|
||
== Changelog == | ||
|
||
See [Releases](https://github.com/logto-io/wordpress/releases). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php declare(strict_types=1); | ||
namespace Logto\WpPlugin; | ||
|
||
function write_log($data): void | ||
{ | ||
if (true === WP_DEBUG) { | ||
if (is_array($data) || is_object($data)) { | ||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log, WordPress.PHP.DevelopmentFunctions.error_log_print_r | ||
error_log(print_r($data, true)); | ||
} else { | ||
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log | ||
error_log($data); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php use Logto\WpPlugin\Settings\SettingsSection; ?> | ||
<div class="wrap" style="max-width: 800px;"> | ||
<h1><?php echo esc_html(get_admin_page_title()); ?></h1> | ||
<p> | ||
<?php echo wp_kses(_x('Thank you for choosing Logto! By integrating Logto into your WordPress site, you are not only enhancing the security and user experience of your site, but also enabling a unified login experience across all your applications.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</p> | ||
<p> | ||
<?php echo wp_kses(_x('If you are new to Logto, we recommend checking out our <a href="https://docs.logto.io/" target="_blank" rel="noopener">introduction page</a> to have a quick overview of Logto concepts and features.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</p> | ||
<p> | ||
<b> | ||
<?php echo wp_kses(_x('If you are looking for a step-by-step guide to set up Logto, please refer to our <a href="https://docs.logto.io/quick-start/wordpress-plugin" target="_blank" rel="noopener">WordPress plugin quick start guide</a>.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</b> | ||
</p> | ||
<p> | ||
<?php echo wp_kses(_x('If you have any questions or feedback, please feel free to:', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</p> | ||
<ul style="list-style: disc; padding-left: 20px;"> | ||
<li> | ||
<?php echo wp_kses(_x('<a href="https://discord.com/invite/UEPaF3j5e6" target="_blank" rel="noopener">Join our Discord server</a> to get help from the community.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</li> | ||
<li> | ||
<?php echo wp_kses(_x('<a href="https://github.com/logto-io/wordpress/issues" target="_blank" rel="noopener">Open an issue on GitHub</a> to report bugs or request features.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</li> | ||
<li> | ||
<?php echo wp_kses(_x('<a href="https://logto.io/" target="_blank" rel="noopener">Subscribe to a paid plan</a> to get access to official support and more features.', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</li> | ||
</ul> | ||
<p> | ||
<?php echo wp_kses(_x('Hope you enjoy using Logto!', 'help', 'logto'), SettingsSection::allowedTextHtml); ?> | ||
</p> | ||
</div> |
Oops, something went wrong.