WordPress + Office 365 | Sign in with microsoft shortcode v8.x
1. WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide
2. Before you start
• You are a Global Administrator for your company’s Office 365 tenant / Azure AD
directory (or have at least the ability to update App registrations).
• You are an Administrator for your WordPress website.
• You have purchased the PREMIUM edition of the WPO365 plugin.
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019
In this video tutorial the Private Pages feature of the WPO365 plugin is used
to demonstrate how you can combine the Sign in with Microsoft shortcode
and the Internet authentication mode to build a corporate website with a
closed user group section.
3. Portal Azure – Private pages
• Navigate to WP Admin > WPO365 > Single Sign-on tab.
• Select Internet as your preferred Authentication mode.
• Add any number of pages that should only be available to authenticated users in
the Private Pages list.
Private pages can only be configured when you activate the Internet Authentication mode. In all other cases the
Private pages setting is hidden.
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019
4. Portal Azure – Always go to after
• Navigate to WP Admin > WPO365 > Login / Logout tab.
• Enter the page you’d like authenticated users to be redirected to in the Goto after
field.
• Check the Always goto after box to instruct the plugin to always redirect users to
URL entered in the previous step.
In this example I have created a Private page and now I am redirecting all users that sign in with Microsoft to
this private page. This is by no means mandatory but simply to demonstrate how you can use a subset of
features of the plugin to create a closed user group within an otherwise publicly / anonymously website.
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019
5. Portal Azure – Shortcode
• Navigate to https://www.wpo365.com/authentication-shortcode/ and copy the
exemplary shortcode.
• Edit the home page and paste the Sign in with Microsoft shortcode V2 example.
Please note that the short code is added using the Custom HTML block.
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019
6. What’s next
• With the PROFESSIONAL or PREMIUM version you can now …
• Automatically register new users from your tenant, other tenants or with MSAL accounts
• Dual login (let users choose to login with Office 365 or with WordPress)
• Require authentication only for a few pages
• Require authentication for all pages but not for the homepage
• Redirect manual login attempts to Microsoft
• Sign out from Office 365
• [Sign in with Microsoft] button (shortcode)
• Extra (BuddyPress) profile fields from Azure AD
• Office 365 profile picture as WordPress Avatar
• Assign WordPress role(s) based on Azure AD group membership(s)
• Deny / allow access based on Azure AD group membership(s)
• Enroll / Update (new) users to WordPress from Azure AD
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019
7. Links & other resources
• Website https://www.wpo365.com/
• Videos https://www.youtube.com/channel/UCmcUJkBWDrwSZR1pQZdkINQ/videos
• Change log https://www.wpo365.com/change-log/
• Email support@wpo365.com
• Twitter https://twitter.com/WPO365
• WordPress https://wordpress.org/plugins/wpo365-login/
• WordPress Forum https://wordpress.org/support/plugin/wpo365-login/
• Reviews https://wordpress.org/plugins/wpo365-login/#reviews
WordPress + Office 365 | wpo365-login | Sign in with Microsoft shortcode V2 Guide July 2019