Connect WordPress and Microsoft Entra | Azure | 365

WP-Config.php | Single Identity Provider (IdP)

After completing this tutorial, you will have learned how you can configure WPO365 to “read” the (OIDC or SAML based) Single Sign-on and / or Microsoft Graph Mailer portion of its configuration from your website’s wp-config.php file. By default, this part of the configuration is saved in the website’s database.


Please note that you can also configure WPO365 to “read” all of its configuration (but without the IdP related variables) from your website’s wp-config.php file.


This is an premium advanced scenario that will help you improve the overall security of the site. It is also a great advantage when you deploy new development, test, staging and productive versions of your website using devOps workflows and need – for example – to change the Redirect URI for the website instance that is being deployed.