Topic on Project:Support desk

Wiki page with Office 365 authentication [SOLVED- See bottom post]

11
Nilesh.ekbote (talkcontribs)

Hi,

We want to setup WiKi page that should login with our Office 365 e-mail id.

Can you please help to setup it ?

Regards,

Nilesh

+91 9096841110

MarkAHershberger (talkcontribs)

This should be possible using something like Extension:PluggableAuth and SAML. I'm happy to try and provide more information if needed but @Cindy.cicalese may have already done this (O365 integration) and be more help.

Nilesh.ekbote (talkcontribs)

Gr8, Thanks for your help.

Can you please share the steps.

Cindy.cicalese (talkcontribs)

It depends upon how you are authenticating with Office 365. There is some information that I found at https://support.office.com/en-us/article/Understanding-Office-365-identity-and-Azure-Active-Directory-06a189e7-5ec6-4af2-94bf-a22ea225a7a9 and https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-protocols that talks about the different options. Once you have determined which applies to you, you can follow the instructions linked from that second page. As Mark mentioned, you could use Extension:PluggableAuth with either Extension:OpenID Connect or Extension:SimpleSAMLphp to integrate with Office 365. I have not tested out that configuration, but those links should get you started, and you can let us know if you have more questions.

MarkAHershberger (talkcontribs)

@Nilesh.ekbote, if you end up doing this, documentation for how would be wonderful.

Srikanth1239 (talkcontribs)

@Nilesh.ekbote, I am trying to do same and facing some issues, can you provide the documentation or high level steps to authenticate wiki with Office 365.

Vijay711 (talkcontribs)

I am also facing issue, any 100% wokring documented solution .

MarkAHershberger (talkcontribs)

Following up on Cindy's links, it looks like this set of articles covers the necessary information to set up SAML. Still no recipe, but a place to start.

Cms.lakruwan (talkcontribs)

You can follow this Microsoft tutorial. This tutorial is based on Laravel, But you can create a new wiki extension and use those classes and functions.

https://docs.microsoft.com/en-us/outlook/rest/php-tutorial

**Register the app with Microsoft Application Registration Portal

**Redirect URL need to change: https://app-url/authorize => https://app-url/index.php

**Load necessary libraries using composer

**Then Create your new extension “Office365Auth” in extensions directory and create below class files.

AuthController.php, OfficeAuth.php, TokenCache.php, LocalSettingsInclude.php (Copy the implementation from the tutorial)

**When you click on the login link in the header-> you should call the signIn() function of the tutorial to redirect to the office365 login page.

**In the return after a valid login -> create a new wiki user or login with existing wiki user by email.

Hope this helps as a starting point

147.147.174.219 (talkcontribs)
Cindy.cicalese (talkcontribs)

This is great - thank you!