Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

How to determine if the current user is authenticated by NTLM or Kerberos in a WebPart’s C# Code?

$
0
0

Hi,

I need to build a WebPart that show the authentication method for the current user. The webpart need to show NTLM or Kerberos.

When I check HttpContext.Current.User.Identity.AuthenticationType, it returns Negotiate. I can’t trust Negotiate as it might be either of NTLM or Kerberos.

What is best method in a SharePoint web part code to clearly determine the authentication method?

Thank you,


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>