Difference between revisions of "Setup Basic Auth for Interfaces"

From Agility
Jump to: navigation, search
(IIS BASIC authentication setup)
(IIS BASIC authentication setup)
Line 11: Line 11:
 
Open IIS configuration console, navigate to Agility Services directory, and switch to content view.
 
Open IIS configuration console, navigate to Agility Services directory, and switch to content view.
 
[[File:agilityservices_basic_iis_01.png|1015px]]
 
[[File:agilityservices_basic_iis_01.png|1015px]]
 
 
</li>
 
</li>
 
  
 
<li>
 
<li>
 
Right click on GeneralImport.ashx and Select “Switch to Features View” from context menu.
 
Right click on GeneralImport.ashx and Select “Switch to Features View” from context menu.
 
[[File:agilityservices_basic_iis_02.png]]
 
[[File:agilityservices_basic_iis_02.png]]
 
 
 
</li>
 
</li>
 
  
 
<li>
 
<li>
 
Open Authentication options.
 
Open Authentication options.
 
[[File:agilityservices_basic_iis_03.png]]
 
[[File:agilityservices_basic_iis_03.png]]
 
 
</li>
 
</li>
  
Line 33: Line 27:
 
Disable Anonymous Authentication and Enable Basic Authentication.
 
Disable Anonymous Authentication and Enable Basic Authentication.
 
[[File:agilityservices_basic_iis_04.png]]
 
[[File:agilityservices_basic_iis_04.png]]
 +
</li>
  
 
</li>
 
 
<li>
 
<li>
 
Edit Basic Authentication options and input default domain (domain in which agility is working).
 
Edit Basic Authentication options and input default domain (domain in which agility is working).
 +
</li>
  
 
</li>
 
 
<li>
 
<li>
 
Edit '''web.config''' file (it is located in agility web application root directory).  At the end of locations add new one (marked below)
 
Edit '''web.config''' file (it is located in agility web application root directory).  At the end of locations add new one (marked below)

Revision as of 15:45, 24 January 2017


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>
      
    …