Gravatar for

Question by dave tobin, Oct 30, 2014 1:39 PM

Looking for how to add a SharePoint Online security provider to the Javascript UI

We've got the JS search UI up and running on an on-prem test index. The JS UI is on the same server as the index, but I'm unclear as to how to add the SharePoint Online security provider, and prompt users to login.

With .Net this is a simple config change, but I don't see any documentation for that functionality in the JS developers area.

Any help here would be great.


Gravatar for

Comment by Martin Laporte, Oct 31, 2014 12:00 PM

Are you looking to use SP Online as an SSO, or do you want to query SP online content but authenticate with something like good plain old Windows Authentication?

Gravatar for

Comment by dave tobin, Oct 31, 2014 12:38 PM

Great question. I wish it were that simple. With the .Net front end, we have tied the SharePoint Online Claims provider to the interface, which prompts users to log-in. The claims provider is pointing to get user auth. to the web application URL using our "OKTA/Office365" SSO path, and a trust identifier of "urn:federation:MicrosoftOnline".

3 Replies
Gravatar for

Answer by Alexandre Paré, Oct 30, 2014 3:06 PM

Here is the docuementation page about sharepoint and claims authentification :

Gravatar for

Comment by dave tobin, Oct 30, 2014 3:13 PM

Thanks for the response. I did see that in the documentation, but it appears to be for a SharePoint on-premise solution with Coveo-SharePoint integration. We use SharePoint Online (Office 365) and don't have that integration as an option.

Gravatar for

Answer by Martin Laporte, Oct 31, 2014 5:12 AM

I'm not aware that we ever integrated the JS UI / REST API combo with SP Online authentication. You are right that the documentation on concerns on-premises SharePoint. I don't think we've ever integrated the JS UI authentication with SP Online auth as of now.

I've asked a few questions internally to try and figure out exactly what processes are involved when dealing with SP Online, as I'm in no way an expert on that particular topic. The REST API does support quite a large range of ways to authenticate users (some requiring custom code), and there might be a simple way to make it work, but I can't have a definitive answer until I learn a little more about the internals.

I'll update here once I get more information.

Gravatar for

Answer by Simon, Jul 17, 2015 7:52 AM

This question has been opened for a while but we did found a way to use SharePoint Online with the JSUI/REST API.

The key to it, and the first step to this solution, is to use the new Claims-to-emails security provider

Your user will then be mapped using the Active Directory Security Provider.

You can then use Windows Authentication (not SharePoint, since it is only used for On-Premise) on your Search page.


Ask a question