Setup Basic Auth for Interfaces

From Agility
Revision as of 15:45, 24 January 2017 by Sychu (Talk | contribs) (IIS BASIC authentication setup)

Jump to: navigation, search


Below configuration tutorial set BASIC authentication only for interfaces defined by import (web service import definitions). It will not set authentication for other services, for example it will NOT enable BASIC authentication in web services used to communicate with mobile devices.

In this scenario any configured (windows) user which pass IIS basic authentication will have access to web services exposed by Agility. In Agility single predefined agility user will handle all requests (regardless of user name authenticated by iis).


IIS BASIC authentication setup

  1. Open IIS configuration console, navigate to Agility Services directory, and switch to content view. Agilityservices basic iis 01.png
  2. Right click on GeneralImport.ashx and Select “Switch to Features View” from context menu. Agilityservices basic iis 02.png
  3. Open Authentication options. Agilityservices basic iis 03.png

  4. Disable Anonymous Authentication and Enable Basic Authentication. Agilityservices basic iis 04.png
  5. Edit Basic Authentication options and input default domain (domain in which agility is working).
  6. Edit web.config file (it is located in agility web application root directory). At the end of locations add new one (marked below)
    …
      <location path="Services">
        <system.web>
          <authorization>
            <allow users="?" />
          </authorization>
        </system.web>
      </location>
      
      <location path="Services/GeneralImport.ashx">
        <system.web>
          <authorization>
            <allow users="DomainESBuser" />
          </authorization>
        </system.web>
      </location>
      
    …