Set Up Service Account for Target Service
When configuring your to work with Kerberos token-based authentication, the first step is to set up a service account for the target service (on the IIS Web Site). This involves:
gateway83
When configuring your
API Gateway
to work with Kerberos token-based authentication, the first step is to set up a service account for the target service (on the IIS Web Site). This involves:Step 1: Set Up Service Account in Active Directory
Log in to the domain controller and create a user account to run the service (IIS Web Site) under this identity. For example, "sp_services".
Step 2: Assign Service Principal Names to Service Account
- Log in to the domain controller or to some other server that is joined to the domain. Ensure that the Windows Resources Tool Kit is installed.
- Open a command prompt (run as Administrator if necessary).
- Run the following command to assign an SPN (Service Principal Name) to the service account (created in Step 1: Set Up Service Account in Active Directory).setspn -A HTTP/<Gateway_host><SPN>\<User_account>Where:
- <Gateway_host>is theAPI Gatewayhost name
- <SPN>is the Service Principal Name
- <User_account>is the user account that is created in Step 1: Set Up Service Account in Active Directory.
Example:setspn -A HTTP/mysite.kworld.mycompany.com mycompany\sp_services - Verify the SPN with this command:setspn -L<SPN>\<User_account>Example:setspn -L mycompany\sp_services
Step 3: Configure Target Service to the Service Account
- Log in to the web server and open the IIS Manager.
- Locate the IIS App Pool under which the target service is running.
- Configure the IIS App Pool identity to run under the service account that was created in Step 1: Set Up Service Account in Active Directory. This allows Windows Integrated Authentication.
Next step:
Set Up a Service Account for the Gateway