This repo contains the code for a WordPress plugin that allows users to authenticate with Azure AD B2C using OpenID Connect. Admins have the ability to configure several B2C policies: general sign-in/sign-up without multifactor authetication, admin sign-in/sign-up with multifactor authentication (optional), and profile editing.
A live version of a WordPress site with this plugin installed is available here: https://olenasblog.azurewebsites.net/
- Install WordPress (download link)
- Optional: Deploy your WordPress site to Azure (instructions)
- Create a sign-in/sign-up policy and an edit profile policy.
- Optional: Create a different sign-in policy for admins.
- For detailed instructions, see here.
- Download this source code from github as a zip file.
- Login to your WordPress site as an admin.
- Navigate to your Dashboard > Plugins > Add New > Upload Plugin.
- Upload the zip file, then activate the plugin.
- On your Admin dashboard, a new options page called "B2C Authentication Settings" should appear under the Settings button.
- Click on that page and fill in the prompts for tenant, clientID, etc.
B2C is an identity management service for both web applications and mobile applications. Developers can rely on B2C for consumer sign up and sign in, instead of relying on their own code. Consumers can sign in using brand new credentials or existing accounts on various social platforms (Facebook, for example).
Learn more about B2C here: https://azure.microsoft.com/en-us/services/active-directory-b2c/