I need to get the authentication provider status of i web application available in IIS?.
Ex:
Is Basic Authentication available for X site?. through c# or python code
I need to get the authentication provider status of i web application available in IIS?.
Ex:
Is Basic Authentication available for X site?. through c# or python code
Copyright © 2021 Jogjafile Inc.
Try to use code like this:
Here you get parent SPWebApplication for specified site and looking for its IisSettings for specified zone (because there could be different settings for different zones). SPIisSettings object contains a lot of properties which will help to complete your task, for example, UseBasicAuthentication.