In WordPress, search for WPO365 and install the “WordPress + Office 365 login” plugin.
The configuration is located under “WPO365” -> Single Sign-On and the following things must be configured:
The Directory ID can be found in the properties in the Azure Active Directory on the portal.azure.com Management page.
To register your WordPress site with Microsoft, you need to perform a new application registration (link to the plugin’s website). Once you have registered your page, you will need to copy the Application ID and paste it here.
Here the WordPress backend page is entered, important that of the slash at the end, such as: https://www.my-website.com/wp-admin/. This entry must exactly match one of the Reply URLs of the registered application in Azure Active Directory.
Normally, nothing needs to be changed here unless you use
- A customized login page
- E-commerce plugins such as woo-commerce
- Custom plugins with own API
- Other applications that use the WordPress REST API
Select Intranet to front and back WordPress, or Internet to protect only the backend with the plugin.
WPO365 Configuration Parameters
WPO365 Configuration in WordPress
WPO365 Integration with WordPress
Azure AD App registrations