EntraMockResponsePlugin

Mocks responses to Microsoft Entra. Includes all functionality of the MockResponsePlugin and adds support for mocking auth flow API requests.

Screenshot of a command prompt with Dev Proxy mocking a response to a Microsoft Entra API.

When the plugin simulates auth flow API responses, it updates the state and nonce to match the API request. In the mocked response body, the plugin searches for the following tokens and replaces them with the actual values from the intercepted API requests.

Token Description
@dynamic.devProxyCertificateChain The certificate chain of the Dev Proxy CA. Dev Proxy replaces the @dynamic.devProxyCertificateChain token with the actual certificate chain of the Dev Proxy CA. This token is useful if you want to validate an access token issued by Dev Proxy.
@dynamic.devProxyKeyId The key ID of the Dev Proxy CA. Dev Proxy replaces the @dynamic.devProxyKeyId token with the actual key ID of the Dev Proxy CA. This token is useful if you want to validate an access token issued by Dev Proxy.
state=@dynamic The state token in the request. Dev Proxy replaces the @dynamic token with the value of the state query string parameter
"id_token": "@dynamic.eyJ0eXAiOiJKV1QiL..." Mocked ID token. Dev Proxy removes the @dynamic. token and updates the value of the nonce claim in the mocked ID token.

Plugin instance definition

{
  "name": "EntraMockResponsePlugin",
  "enabled": true,
  "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
  "configSection": "mocksPlugin"
}

Configuration example

See MockResponsePlugin

Configuration properties

See MockResponsePlugin

Command line options

See MockResponsePlugin