Type of authentication and authorization that Dev Proxy should use. Allowed values: apiKey, oauth2
Yes
apiKey
Configuration for API key authentication and authorization.
Yes, when type is apiKey
oauth2
Configuration for OAuth2 authentication and authorization.
Yes, when type is oauth2
API key configuration properties
Property
Description
Required
allowedKeys
List of allowed API keys.
Yes
parameters
List of parameters that contain the API key.
Yes
Parameter configuration properties
Property
Description
Required
in
Where the parameter is expected to be found. Allowed values: header, query, cookie
Yes
name
Name of the parameter.
Yes
OAuth2 configuration properties
Property
Description
Required
metadataUrl
URL to the OpenID Connect metadata document.
Yes
allowedApplications
List of allowed application IDs. Leave empty to not validate the application (appid or azp claim) for which the token is issued.
No
allowedAudiences
List of allowed audiences. Leave empty to not validate the audience (aud claim) for which the token is issued.
No
allowedPrincipals
List of allowed principals. Leave empty to not validate the principal (oid claim) for which the token is issued.
No
allowedTenants
List of allowed tenants. Leave empty to not validate the tenant (tid claim) for which the token is issued.
No
issuer
Allowed token issuer. Leave empty to not validate the token issuer.
No
roles
List of allowed roles. Leave empty to not validate the roles (roles claim) on the token.
No
scopes
List of allowed scopes. Leave empty to not validate the scopes (scp claim) on the token.
No
validateLifetime
Set to false to disable validating the token lifetime. Default true.
No
validateSigningKey
Set to false to disable validating the token signature. Default true
No
Command line options
None
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.