Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect SharePoint 2013/2016 authentication mode in JavaScript

Tags:

I need to detect authentication type being used by SharePoint 2013 and 2016. I need to distinguish between ASP.NET Forms (cookies) authentication and Windows (Basi/Digest/NTLM/Ketberos) authentication.

I see that it is possible to detect authentication mode on server side: Programmatically determine authentication mode. But our SharePoint add-in is a pure JavaScript and does not have any server-side code.

Is it possible to detect SharePoint authentication in JavaScript?

like image 947
IT Hit WebDAV Avatar asked Jun 22 '16 22:06

IT Hit WebDAV


1 Answers

I think that you should investigate the HTTP headers of your web page.

They can be read through javascript (see this link) and contain information regarding the authentication type in use.

like image 64
Datadecision team member Avatar answered Sep 28 '22 02:09

Datadecision team member