Policies
Upstream Azure AD Service Auth Policy
This policy adds a Authorization
header to the upstream request that allows
using Azure AD to authenticate requests to your origin server. This is a useful
means of securing your origin server so that only your Zuplo gateway can make
requests against it.
Using this policy allows you to delegate authentication and authorization to your gateway without writing any code on your origin service. For instructions on how to configure Azure AD authentication see Configure your App Service or Azure Functions app to use Azure AD login.
Configuration
The configuration shows how to configure the policy in the 'policies.json' document.
Policy Options
The options for this policy are specified below. All properties are optional unless specifically marked as required.
activeDirectoryTenantId
<string> (Required) -Azure Active Directory Tenant ID.activeDirectoryClientId
<string> (Required) -The Application (client) ID of the Azure AD App Registration.activeDirectoryClientSecret
<string> (Required) -The client secret of the Azure AD App Registration.tokenRetries
<number> -The number of times to retry fetching the token in the event of a failure..Defaults to3
.expirationOffsetSeconds
<number> -The number of seconds less than the token expiration to cache the token.Defaults to300
.
Using the Policy
Read more about how policies work