Configure Azure AD Single Sign-On (SSO) WordPress OAuth | Azure AD SSO

Configure Azure AD Single Sign-On (SSO) WordPress OAuth | Azure AD SSO


Get Free Trial

Configure Azure AD Single Sign-On (SSO) with WordPress OAuth & OpenID Connect Single Sign-On (SSO) plugin. Enable secure authentication into WordPress using Microsoft Azure AD as OAuth and OpenID Connect provider. With Microsoft Azure AD WordPress Integration, Users can access their WordPress website by authenticating in with their Microsoft Azure AD domain credentials. Microsoft Azure AD WordPress Single sign-on (SSO) enables a user to connect securely to a WordPress site with just one set of login credentials, easing the management of multiple usernames and passwords. With no need for a username or password to login, this seamless WordPress Azure Integration improves user experience while also mapping Azure AD user attributes to WordPress roles. Microsoft Azure AD WordPress Integration also provides Attribute/Role Mapping feature which allows you to setup user profile attributes for WordPress. User Attribute/Role Mapping is mandatory for enabling users to successfully login into WordPress.

To know more about other features we provide in WP OAuth Single Sign-On ( OAuth & OpenID Connect Client ) plugin, you can click here.

To know more details about different features provided in Azure AD SSO and Microsoft Office 365 SSO, please click here.


WordPress Azure Integration


WordPress Azure integration provides functionality to manage all the user operations from your
WordPress site.

Click here

Following are the features supported with WP OAuth Client Plugin



With advancements in eLearning platforms for teachers & students, The demand for Single Sign-On (SSO) to be implemented for student portals has grown a lot. With SSO, the student/teacher only has to input their username and password once to access multiple resources. With WordPress OAuth Client Plugin, SSO can be configured to allow your student to log in using their credentials stored in their Azure Active Directory (AAD).
We provide WordPress Single Sign-On (SSO) with multiple education providers, you can find some popular providers below

Clever

ClassLink

Canvas

Google Classroom

Can't find your Educational Provider? Click here to learn more

Pre-requisites : Download And Installation


  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress OAuth Single Sign-On (SSO) plugin and click on Install Now.
  • Once installed click on Activate

Steps to configure Azure AD Single Sign-On (SSO) Login into WordPress

1. Setup Azure Active Directory as OAuth Provider

  • Sign in to Azure portal.
  • Select Azure Active Directory.
  • Azure AD Single Sign-on (SSO) - Login
  • In the left-hand navigation pane, click the App registrations service, and click New registration.
  • Azure AD Single Sign-on (SSO) - App-Registration
  • When the Create page appears, enter your application's registration information.(Refer to the below table)
    • Name : Name of your application.
      Application type :
      1. Select "Web app / API" for client applications and resource/API applications that are installed on a secure server. This setting is used for OAuth confidential web clients and public user-agent-based clients. The same application can also expose both a client and resource/API.
      Redirect URI :
      1. For "Web app / API" applications, provide the base URL of your app. eg, https://<domain-name> might be the URL for a web app running on your local machine. Users would use this URL to sign in to a web client application.
  • When finished, click Register.
  • Azure AD Single Sign-on (SSO) - Overview
  • Azure AD assigns a unique Application ID to your application. The Application ID is your Client ID and the Directory ID is your Tenant ID, keep these values handy as you will need them to configure the miniOrange OAuth Client plugin.
  • Azure AD Single Sign-on (SSO) - Overview
  • Go to Certificates and Secrets from the left navigaton panel and click on New Client Secret. Enter description and expiration time and click on ADD option.
  • Azure AD Single Sign-on (SSO) - secret-Key
  • Copy the secret key "value" and keep the value handy it will be required later to configure Client Secret under the miniOrange OAuth Client Plugin.
  • Azure AD Single Sign-on (SSO) - Secret-Key-2

You have successfully configured Azure AD as OAuth Provider for achieving user authentication with Azure AD Single Sign-On (SSO) login into your WordPress Site.

2. Setup WordPress as OAuth Client


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
  • Azure AD Single Sign-On (SSO) OAuth - Add new application
  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Azure AD
  • Azure AD Single Sign-On (SSO) OAuth - Select Application
  • Copy the Callback URL to be used in OAuth Provider Configuration. Click Next.
  • Azure AD Single Sign-On (SSO) OAuth - Callback URL
  • If you want to allow SSO from Azure AD single-tenant into your WordPress site then configure App name & Tenant ID found from the Azure Active directory (AAD) SSO application.
  • Looking for setting up Login flow for Multi-tenant Microsoft Application? Please click here.


    Azure AD Single Sign-On (SSO) OAuth - Add App name, TenantID
  • If you want to allow login into your wordpress site from any Azure AD tenant, then enter the tenant value as 'common' in the plugin configuration and Click Next. (refer to the below image)
  • Azure AD Single Sign-On (SSO) OAuth - Add App name, TenantID
  • Enter the Client Credentials like Client ID & Client Secret as shown in the setup dialogue box, openid is already filled. Click Next.
  • Azure AD Single Sign-On (SSO) OAuth - Client ID & Client Secret
  • Click on Finish to save the configuration.
  • Azure AD Single Sign-On (SSO) OAuth - Finish configuration

You have successfully configured WordPress as OAuth Client for achieving user authentication with Azure AD Single Sign-On (SSO) login into your WordPress Site.


3. WP User Profile/Attribute Mapping

  • User Attribute Mapping is mandatory for enabling users to successfully login into WordPress. We will be setting up user profile attributes for WordPress using below settings.
  • Finding user attributes

    • Go to Configure OAuth tab. Scroll down and click on Test Configuration.
    • Azure AD B2C Single Sign-on (SSO) - OAuth Test Configuration
    • You will see all the values returned by your OAuth Provider to WordPress in a table. If you don't see value for First Name, Last Name, Email or Username, make the required settings in your OAuth Provider to return this information.
    • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, you will get the list of attributes in a Username dropdown.
    • Azure AD B2C Single Sign-on (SSO) - WordPress Attribute Mapping

4. Azure AD Profile/Groups Mapping

  • Go to Application → Select the application where you want to configure the group mapping. Now, Go to the API Permissions tab.
  • Azure AD B2C Single Sign-on (SSO) - API Permissions
  • Click on the Add permission button, and then Microsoft Graph API -> Delegated Permissions and select openid, Profile scope and click on the Add Permissions button.
  • Azure AD B2C Single Sign-on (SSO) - Request API Permissions
  • Click on the Grant consent for Demo button.
  • Go to Manifest tab and find groupMembershipClaims and changes it’s value to "All" and click on the save button.
  • Azure AD B2C Single Sign-on (SSO) - Group Membership Claims
  • Now you would be able to get the group's value in the Test configuration window.
  • Azure AD B2C Single Sign-on (SSO) - Group Mapping Test Configuration
  • You can follow the role mapping section to map the groups to WordPress users while Azure AD SSO.

5. WordPress Groups/Profile Mapping [Premium]

  • Go to the Attribute Mapping section in the plugin and map the Attribute Names from the Test Configuration table. Make sure Enable Role Mapping option is enabled and click on the Save Settings button. (Refer to the screenshot)
  • WordPress OAuth SSO - attribute mapping
  • Scroll down and go to the Role Mapping section, you need to map Group Attribute Name. Select the attribute name from the list of attributes that return the groups from the test configuration table of Azure AD.
    Eg:Groups
  • WordPress OAuth SSO - test configuration - role mapping
  • Assign the WordPress role to the Provider Groups: Based on the Azure AD application, you can allocate the WordPress role to Azure AD Groups. Add the Azure AD group's value under Group Attribute Value and assign the required WordPress role in front of it under WordPress Role.
    For example, in the below image. Group value has been assigned the role of Subscriber.
  • WordPress OAuth SSO - test configuration - role mapping
  • Once you save the mapping, the Azure AD group will be assigned the WordPress Subscriber role after SSO.
    Example: As per the given example, a User with group value will be added as a administrator .

6. Azure AD Claim Mapping [Premium]

  • Go to your application in Azure Active Directory (AAD) and select Token configuration from the left menu.
  • Click on Add optional claim and then select ID from the right section.
  • Now choose all the attributes you want to fetch while SSO (e.g family_name, given_name, etc) and click on Add button.
  • You might see a popup to Turn on the Microsoft Graph profile permission (required for claims to appear in token), enable it, and click on Add button.
  • Azure AD B2C Single Sign-on (SSO) - Custom Attribute Mapping

7. SSO Login button Configuration

  • The settings in Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a Azure AD login widget on your WordPress page, you need to follow the below steps.
    • Go to WordPress Left Panel > Appearances > Widgets.
    • Select miniOrange OAuth. Drag and drop to your favourite location and save.
    • Azure AD B2C Single Sign-on (SSO) - WordPress create-newclient login button setting
    • Go to WordPress Left Panel > Appearances > Widgets.
    • Select miniOrange OAuth. Drag and drop to your favourite location and save.
    • Azure AD B2C Single Sign-on (SSO) - WordPress create-newclient login button setting
    • Open your WordPress page and you can see the Azure AD SSO login button there. You can test the Azure AD Single Sign-On (SSO) now.
    • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
    • Azure AD B2C Single Sign-on (SSO) - WordPress create-newclient login button setting
    • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
    • You will see an Azure AD SSO login button there. Once you click the login button, you will be able to test the Azure AD Single Sign-On (SSO).
    • Azure AD B2C Single Sign-on (SSO) - WordPress create-newclient login button setting

8: Scope & Endpoints

  • Please refer the below scope & endpoints table to allow SSO from Azure AD single-tenant into your WordPress site.
  • Scope: openid
    Authorize Endpoint: https://login.microsoftonline.com/<tenant-id>/oauth2/authorize
    Access Token Endpoint: https://login.microsoftonline.com/<tenant-id>/oauth2/token
    Get User Info Endpoint: https://login.windows.net/<tenant-id>/openid/userinfo
    Custom redirect URL after logout:[optional] https://login.microsoftonline.com/<tenant-id>/oauth2/logout?post_logout_redirect_uri=<your URL>
  • Please refer the below scope & endpoints table to allow SSO from any Azure AD tenant into your WordPress site.
  • Scope: openid
    Authorize Endpoint: https://login.microsoftonline.com/common/oauth2/authorize
    Access Token Endpoint: https://login.microsoftonline.com/common/oauth2/token
    Get User Info Endpoint: https://login.windows.net/common/openid/userinfo
    Custom redirect URL after logout:[optional] https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=<your URL>

In this Guide, you have successfully configured Azure AD Single Sign-On (SSO) by configuring Azure AD as OAuth Provider and WordPress as OAuth Client using our WP OAuth Single Sign-On ( OAuth & OpenID Connect Client ) plugin. This solution ensures that you are ready to roll out secure access to your WordPress site using Azure AD login credentials within minutes.

In addition to the WordPress SSO, our plugin also allows you to enable user sync from Azure AD to WordPress using Microsoft Graph API to perform user synchronization and account management operations (create, read, update, delete) within an Azure AD directory. It will fetch all the user's profiles from the Active Directory to the WordPress database. WordPress OAuth Client Plugin also provides WordPress Multisite support. This allows you to have multiple WordPress Installations and still be able to authenticate your users using Azure AD and securely login to your WordPress site using Azure AD Single Sign-On (SSO). Apart from WordPress Multisite support, our plugin also gives you the ability to configure multi-tenancy for your WordPress site with Azure AD.

Azure Self-Service Password Reset

  • Azure Self-Service Password Reset (SSPR) is a feature of Azure Active Directory (AAD) that allows users to reset their passwords without having to contact the administrator for support. As an administrator, you can reset a user's password if the password is forgotten, the user is locked out of a device, or the user was never given a password. Allowing employees to use the Azure AD Self-Service Password Reset (SSPR) feature and unblock themselves can help your company save time and money by eliminating the need to depend on IT administrators & minimizing the support costs associated with the enquiries.
  • The WordPress Azure AD integrator interfaces with the WordPress OAuth & OpenId Connect Client Single Sign-On (SSO) and allows you to manage all of your user's actions from your WordPress site. Azure AD Self-Service Password Reset (SSPR) is one of the user functions available. Azure password reset can be controlled by either the users or WordPress administrators. As an administrator, you can deliver a seamless user experience on your WordPress site for all your Azure AD by enabling the Azure AD Self-Service Password Reset(SSPR) feature for them. You don’t need to manage them by yourself at the Azure portal.
  • If you forget your Azure AD account password but wish to use SSO with Azure AD B2C, go to the sign-in page of Azure AD and click ‘Forget your Password’. You'll be able to reset your password with Azure AD Self-Service Password Reset (SSPR) feature without the administrator support and securely SSO into WordPress.
  • Refer to this Setup Guide to enable users to unlock their account or reset passwords using Azure AD self-service password reset, Reach out to us if you face trouble enabling the feature

Azure AD MFA Conditional Access

  • Azure AD Multi-Factor Authentication (MFA) conditional access adds additional security over only using a password to authenticate the user login. Multi Factor authentication (MFA) offers an extra layer of security to the sign-in process. It requires users to authenticate their identity through a variety of methods. Instead of simply requesting a username and password. MFA is used to limit access to internal IT systems and solutions. Azure AD MFA conditional access adds extra layer of security to data and apps by enabling a second form of authentication. Enabling Conditional Access policy for MFA makes it easy to customize user’s experience to fit their specific requirements. Conditional Access policy for MFA allows you to prompt users for MFA when it's necessary for security, but also restrict when not needed.
  • Secure access to resources with Azure AD MFA conditional access with WordPress OAuth & OpenID Connect Single Sign-On (SSO) plugin allows you to securely Single Sign-On (SSO) with Azure AD & enable Azure AD Multi factor authentication (MFA) with Azure for your WordPress Site as well. This solution ensures that you are ready to roll out secure access to your WordPress(WP) site using Azure login credentials within minutes & provide extra layer of protection with Azure AD MFA conditional access policy.
  • To enable and use Azure AD Multi-Factor Authentication is with Conditional Access policies. Conditional Access policy for MFA allows you to specify policies that respond to sign-in events and require extra activities before granting a user access to the service.
  • Refer to this Setup Guide to learn the steps of planning and deploying Azure AD MFA conditional access. Reach out to us if you face trouble enabling the feature


    Additional Resources


    Mail us on oauthsupport@xecurify.com for quick guidance(via email/meeting) on your requirement and our team will help you to select the best suitable solution/plan as per your requirement.

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com