proper implementation of “windows” authentication in web api?

前端 未结 4 532
梦谈多话
梦谈多话 2020-12-29 09:47

I\'ve created a Web Api 2 app which will only be used on the corporate network. I\'ve read about Windows authentication in Web API so it seems to be possible. But I need to

4条回答
  •  青春惊慌失措
    2020-12-29 10:45

    If you are using IIS Express, you need to update applicationhost.config file.

    This is the file version of the IIS configuration tool where you can configure the web server itself. you can find this file in the following directory:

    %userprofile%\documents\iisexpress\config\applicationhost.config
    

    or

    %userprofile%\my documents\iisexpress\config\applicationhost.config
    

    When you find it, update it as:

    
        
            
            
        
    
    

    For IIS:

    1. Select your Application
    2. Double Click - 'Authentication'
    3. Enable Windows Authentication
    4. Restart IIS Server

    Check this for more details

提交回复
热议问题