-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Steps to reproduce on a 13.10.4 instance:
-
Have a main wiki and a subwiki (on the latter you can pick whichever option for the user scope and membership type, I have tried them all). You can try this example for the subwiki user scope and membership type:

-
Install Azure AD app on an https XWiki server at farm level.
-
Configure on both Azure portal side and XWiki side (using the same client ID, secret and Tenant ID and dedicated login URIs) it using the documentation steps.
-
On the main wiki administration, allow the View right to any of the groups, for example the XWikiAdminGroup as in the image below:

The same problem happens even if the Prevent unregistered users from viewing pages, regardless of the page rights
and/or Prevent unregistered users from editing pages, regardless of the page rights are checked or left unchecked.
- On the subwiki administration, you can leave the default local rights, making sure the View right is left empty for any group. On the Both scope, you can try the below example as well:

or

or

It would not matter if you allow, while on the subwiki adminstration, to the global groups the Comment, Edit, Delete, Admin, Register rights, but let's say you'd like to see if it would help on the subwiki side if the user profile that would be created when logging in on the main wiki with the AzureAD is will be one of those global groups.
The same problem happens even if the Prevent unregistered users from viewing pages, regardless of the page rights
and/or Prevent unregistered users from editing pages, regardless of the page rights are checked or left unchecked.
-
Login on a different browser or on incognito on the main wiki using Azure AD. Login is successful, a profile is created and added in XWikiAllGroup:


Extra: You can add the user in the XWikiAdminGroup as well. -
Login on a different browser on the subwiki using the same AzureAD account as the one used on the main wiki.
Expected result: login is successful
Actual result: access is forbidden

When removing the allowed View on the global wiki administration, the access to the subwiki is possible with the same AzureAD account used to login on the main wiki.
Removed View on main wiki administration

Login possible on subwiki with same AzureAD account used for the main wiki login test

However, the ColorTheme is not loaded, even if the profile of the AzureAD account was added in the global XWikiAdminGroup, and this group has even Admin rights given on the subwiki side.