###Please Note: This plugin is built with a very specific use-case in mind. This plugin will only work for First Party AAD logins from Microsoft. If you'd like to set this up on your site, you'll need to request and be granted access.
A WordPress plugin that allows organizations to use their Azure Active Directory user accounts to sign in to WordPress. Organizations with Office 365 already have Azure Active Directory and can use this plugin for all of their users and any onsite Active Directory linked to Azure Active Directory can also be used.
- Standard WordPress login is still available.
In the typical flow:
- User attempts to access the admin section of the blog (
wp-admin
). At the sign in page, they are given a link to sign in with their Azure Active Directory organization account (e.g. an Office 365 account). - After signing in, the user is redirected back to the blog with a JSON Web Token (JWT), containing a minimal set of claims.
- The plugin uses these claims to attempt to find a WordPress user with the Azure AD ID that matches the Azure Active Directory user.
- If one is found, the user is authenticated in WordPress as that user.
- (Optional) Membership to certain groups in Azure AD can be mapped to roles in WordPress.
The following instructions will get you started. In this case, we will be configuring the plugin to use the user roles configured in WordPress.
You can do this with git
or with the 'Download ZIP' link on the right.
Place the aad-sso-wordpress
folder in your WordPress' plugin folder. Normally, this is <yourblog>/wp-content/plugins
.
Domain must have ssl enabled.
The plugin can be configured in Settings > AAD Settings.