English
Integrating with WordPress
A hands-on guide and example to integrate WordPress with Logto.
A hands-on guide and example to integrate WordPress with Logto.
This guide will walk you through the process of integrating Logto with WordPress using the OIDC plugin. But first, let's take a look at the user experience once the integration is complete.
[SITE URL]/wp-login.php by default, and there is a sign in by OIDC button.Now that we've seen the end result of integrating Logto with WordPress, let's get our hands dirty and dive into the integration process.
Before we begin, make sure you have the following:

email profile openid offline_access.https://[tenant-id].logto.app/oidc/auth, you can click "show endpoint details" in the Logto application page to get the URL.https://[tenant-id].logto.app/oidc/me.https://[tenant-id].logto.app/oidc/token.https://[tenant-id].logto.app/oidc/session/end.email or sub, depending on your configuration.sub and change it later.

Congratulations! You have successfully integrated Logto with WordPress.
To further customize the integration, you can explore additional features in the plugin's setting page, such as linking existing users, customizing the login button, using SSO mode, and more.