Microsoft Azure Active Directory Single Sign-On (SSO) (Pro)

Last modified by Administrator on 2021/11/20 00:00

Microsoft Azure Active Directory Single Sign-On (SSO) (Pro)

This extension allows users to authenticate to the wiki using Azure Active Directory

10-login-with-azuread-shaded.png
CategoryApplication
Active Installs7
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Minimal XWiki version supported11.10
SourcesIssues

The AzureAD Integration allows you to integrate XWiki with Microsoft's identity management service Azure Active Directory. Thanks to this application it is possible to log in to XWiki using an Azure AD account.

This integration uses the OAuth2 protocol to connect the Azure AD service with XWiki. It works with individual Azure accounts, as well as company wide AD accounts.

The installation is done by registering an app on the Azure cloud, adding the necessary permissions as well the URL of this wiki, and providing the client-id, tenant-id and secret to the app configuration. See the dedicated section in the Documentation.


Azure Active Directory Configuration page


External Resources

Configuration

Preparing your wiki

Make sure that you know the (https) URL of your wiki.

Registering for OAuth access

1. Navigate to portal.azure.com under "app registrations".

01-click-new-app-registration.png

2. Click on "+ New registration"

02-new-registration

3. Choose/add a name (that will be user visible) and the desired account types

03-register-app.png

4. Register the app

You are now defining what the "app" (the XWiki) as: 

  • Display name
  • Application (client) ID
  • Directory (tenant) ID

Write down the client and tenant ids (using the roll-over-button "Copy to clipboard" can work well)

04-app-summary

5. Click on "Certificates & secrets" from the left panel

  • Click on "+ New client secrets"
  • Add a Description and an Expiration time
  • Click on the Add button
  • Copy the Value field (using the roll-over-button "Copy to clipboard") and write it down (store it somewhere as it will become hidden and inaccessible - it will be used as secret key)

05-certificate-and-secrets

6. Click on "API permissions" from the left panel

  • Click on "+ Add a permission"
    06-add-permission
  • Select "Microsoft Graph"
    06.1-add-permission
  • Select "Delegated permissions"
    06.2-add-permission-delegated
  • Under "Select permissions" search and select openid, User.Read and User.ReadBasic.All 
    06.3-add-permission-search
  • Click on the "Add permissions" button

7. Click on "Authentication" from the left panel

  • Click on "+ Add a platform" > Web
  • Add the desired Redirect URI eg "http://localhost:8080/xwiki/bin/login/XWiki/XWikiLogin
  • Optional - Add an Front-channel logout URL (an absolute URL such as https://<yourwiki>/xwiki/bin/view/AzureAD/OAuthLogout)
  • Select "ID tokens"
    07.1-authentication-id-tokens
  • Click on the "Configure" button

07-authentication

8. Click on "Branding" from the left panel

  • Add useful information as possible to get the trust of the users (for the wiki to access the permissions).

08-branding

  • Click on "Save"

We now have finished the configuration on the Microsoft side.

9. Log-in to the wiki as Admin

  • From the Drawer access "Administer Wiki" >  "Extensions" > "Extensions"
  • Search for Azure AD, install the appropriate version and get a License for it

10. Click on Other > Azure AD

  • Input Client ID, Secret and Tenant ID as copied above
  • Input the return URL as the return URL input at step 3. You can leave it empty if using a single URL to access your wiki.
  • From PERMISSIONS TO REQUEST select/unselect User image
  • Click on the "Save" button

09-azureAD-app-config

We now have finished on the XWiki side and can test the setup.
 

11. Logout or choose another browser to access the wiki

12. Click Login

  • Click on "Login with Azure Active Directory"
    10-login-with-azuread
  • Fill in the credentials for the Microsoft account (also used to login in to https://portal.azure.com/)
  • Accept the Permissions requested
    11-permissions-microsoft-german

FAQ

How to sync the XWiki profile with the Azure-Active-Directory Account information?

On the Administration section, the "Permissions to request" options allow the user to specify which information will be copied from the Azure Account to the XWiki profile upon login.
PermissionsToRequest.png

I have an Active-Directory Server; can I use it with this app?

No. This app is solely designed for the Azure Cloud based Active-Directory server by Microsoft Inc.
However, Microsoft offers methods to migrate from a local active-directory server to an Azure active directory service.

Can this app import user images? (avatars)

Yes, this app can do so if the accounts are allowed to use Outlook.

Can I block some users from logging in ?

Provided that a user has logged in with an AzureAD identity, a wiki page for this user has been created and can be modified.
Setting this user to inactive, or removing view rights on this user will prevent this AzureAD-based login to work.

Can I add login with the OAuth provider X/Y/Z ?

This app is based on IdentityOAuth which is designed to be used with multiple identity providers. Creating another provider requires implementing a provider java class as well as configuration XWiki objects and administration XWiki sheets. See the documentation there.

Can I use this service with our http-based wiki?

Except for ``localhost`` (including ``localhost:8080`, Azure Active Directory does not allow users to be sent to URLs that are not using the ``https`` protocol. Hence this app can be used for development but not for hosting a local http-based server.

I meet the error that the return-URL is not allowed

This error occurs as soon as the URL that was used by the XWiki server at time of configuring the administration is not the same as the URL configured in the Azure Active Directory service as redirect URL. Since XWiki can often be accessed from different URLs, it may be safer to configure the app with a hand-written redirect-URL.

Installation Steps

This paid extensions requires 11.10 or above. In order to install the extension, follow the next steps inside your XWiki instance (on cloud or on premise).

Navigate to the Extension Manager

In the Applications Panel click on "More Applications..." and then "Install new applications...". Alternatively navigate directly to the Administration and select the "Extensions" section.

step1.png

Install the Extension

Search for the extension you wish to install and use the Install button to install it.

step2.png

Get a License

Navigate to the "Licenses" section of the Administration, fill your details, look for the extension you just installed in the live table and click the buttons to get a trial license or to buy a license.

step3.png

Install the License

If you have selected a trial license then you're good and there's nothing else to do. Your trial license is automatically installed.

However if you've selected to buy a license you'll be redirected to a page to perform the payment. At the end you need to come back to the "Licenses" administration section and click on the "Check for Updates" button. This will download and apply the license you bought.

Use the Extension

Start using the Extension! Refer to the extension's documentation to know how to use it.

Installing Paid Apps on Subwikis

If you want to install an application on the whole farm (main wiki + subwikis), you can do so directly from the main wiki’s Extension Manager, as seen below:

step4.png

Extensions can also be installed only on a particular subwiki by global admins. Subwiki admins will not be able to install these extensions due to their limited rights.

Uninstall the extension

To rapidly see the effect of deinstallation, you can navigate to the administration of Azure AD and deactivate the app.
You can navigate to the administration of the extensions and remove the extension.

Options

The price is per year and varies depending on the support level and the number of users.

Support / Users 10 25 50 100 250 500 1000 2500 5000 10000 20000
Silver
Microsoft Azure Active Directory Single Sign-On (SSO) (Pro) is part of the XWiki Pro package. Purchasing this package you will benefit from more extensions at a better price. Check the full offer in XWiki Pro!

Benefits

What do you get when you purchase an XWiki extension?

1 year license

By purchasing an XWiki extension license, you'll benefit from it during one year.

Free updates

You benefit from all the extension updates during one year. You are always up to date.

Support included

If you are facing an issue, you can reach the XWiki support. Our team is always available to help.

How to Buy

To buy, install this extension from inside your XWiki instance and follow the instructions.

Release notes

v1.5

Bugs:

  • #2: Failed to instantiate AzureADIdentityOAuthProvider

v1.4

Bugs:

  • #5: The login button is not displayed
  • #4: Broken login after reinstall on farm
  • #2: Failed to instantiate AzureADIdentityOAuthProvider

Also update the licensor and Identity OAuth versions.

v1.2

  • #6: Azure users with empty name get an error upon login

v1.1

  • #1: Polish project descriptor

v1.0

Initial release.

Extension details

This information is only displayed to Administrators. Your users can't see this tab.

License

  • GNU Lesser General Public License 2.1

Sources

Issues

Type

  • xar

Developed by

Compatibility

  • Requires 11.10 or above.

Installable with the Extension Manager

Dependencies

  • com.xwiki.integration-azure-oauth:integration-azure-oauth-admin-ui 1.5.1
  • com.xwiki.licensing:application-licensing-licensor-api 1.20
Tags:
XWiki SAS Copyright © 2021