Last edited 4 months ago
by Meryam Sahin
Revision as of 09:03, 22 June 2026 by Meryam Sahin (talk | contribs) (Text replacement - "[[File:Draft:" to "[[File:")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Establish Connection

On Entra

Click on Enterprise Application:

Click New Application:

File:Setup Draft Setup Azure-OpenIDConnect New.png

Click Create your own Application:

File:Setup Draft Setup Azure-OpenIDConnect create.png

Choose a distinct name,

Choose "Integrate any other application you don't find in the gallery.

Click Create.

File:Setup Draft Setup Azure-SAML-Connection Name.png

This might take a while.

Choose "Single Sign-On":

File:Setup Draft Setup Azure-SAML-Connection 1.png

Choose SAML:

File:Setup Draft Setup Azure-SAML-Connection 2.png

Edit Basic Configuration:

File:Setup Draft Setup Azure-SAML-Connection Config.png

Add Identifier and Reply URL and click save and close the sidebar:

File:Setup Draft Setup Azure-SAML-Connection basic.png

Scroll Down to SAML Certificates and donwload Metadata XML:

File:Setup Draft Setup Azure-SAML-Connection metadata.png

On Application(BlueSpice):

This metadata XML file has to be saved in the persitent storage of your Dockers under $DATADIR/wiki/simplesamlphp/ as saml_idp_metadata.xml

Open Browser to URL:

https://my.cool.bluespice.url/_sp/module.php/saml/sp/metadata.php/default-sp

and your Browser downloads a File named default-sp.xml

On Entra:

Upload File here:

File:Setup Draft Setup Azure-SAML-Connection metadata2.png

​​​

On Wiki:

Check Connection in Browser under URL:

https://my.cool.bluespice.url/_sp/module.php/admin

File:Setup Draft Setup Azure-SAML-Connection Test.png

You can find the password in the persitent storage of your Dockers under $DATADIR/wiki/.wikienv

Choose Test:

File:Setup Draft Setup Azure-SAML-Connection Simple.png

Choose default-sp:

File:Setup Draft Setup Azure-SAML-Connection simple2.png

Now you should see your Azure Users Basic Claims or be forwarded to Login to Azure and see your BasicClaims afterwards.

File:Setup Draft Setup Azure-SAML-Connection default-sp.png

Please compare your claim pathes with this given string and change values where needed:

{"emailAttribute":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","realNameAttribute":"http://schemas.microsoft.com/identity/claims/displayname","usernameAttribute":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name","authSourceId":"default-sp"}

Go to Wiki SpecialPage BlueSpiceConfigmanager:

https://my.cool.bluespice.url/wiki/Special:BlueSpiceConfigManager

File:Setup Draft Setup Azure-SAML-Connection Configmanager.png
Pluggable Auth Entries:
Name Value Usage
Button Label Free String Just a Identifier for the Login Button. Usefull if you have several Authentication Providers
PluginName "SimpleSAMLphp" Tells BlueSpice what plugin to use
Data object json-string Tells BlueSpice the Sources of the UserInformation
Group object string json-string Tells BlueSpice about groupsync configuration

Click Add , check the Chekbox"Should login occur automatically when a user visits the wiki?", and after that click Save.

Open Wiki in a New Browser or Private Session:

File:Setup Draft Setup Azure-SAML-Connection Login.png


Enable Auto-Login:

Step 1: Enable AutoForwarding to LoginPage

File:Setup Draft Setup PluggableAuth-Login-Page.png

Step2: Disable LocalLogin:

Set:

<?php
$GLOBALS['wgPluggableAuth_EnableLocalLogin'] = false;

in post-init-settings.php

GroupSync

On Entra:

Go Back to Basic-Configuration Step and Edit Attribute and Claims: File:Setup Draft Setup Azure-SAML-Connection Attribute.png Click add GroupClaim: File:Setup Draft Setup Azure-SAML-Connection GroupClaim.png


Decide wich groups to add and choose SamaccountName as sourceAttribute: File:Setup Draft Setup Azure-SAML-Connection GroupClaim 2.png Wether you can assign groups directly to the Enterprise Application depends on the Active Directory plan level(License).

So mostly its All or Security Click save.

If you now return to the https://my.cool.bluespice.url/_sp/module.php/admin/test/default-sp

you should see also groups:

File:Setup Draft Setup Azure-SAML-Connection group 3.png

If not please retry in different Browser/Private Tab, clear cookies. Might be a problem with cache here.


Final Step: Check and Add Groupclaim to Configuration:

[{"groupAttributeName":"http://schemas.microsoft.com/ws/2008/06/identity/claims/groups","type":"syncall"}]

File:Setup Draft Setup Azure-SAML-Connection group4.png

Save and Finished. Remember that Groups are not created Automaticly in Wiki and Must be named identical To the Name in Azure.

See also:

https://www.mediawiki.org/wiki/Extension:PluggableAuth

https://www.mediawiki.org/wiki/Extension:SimpleSAMLphp