From 66ecfb394c5fd2978172a92209e4f3cc69437314 Mon Sep 17 00:00:00 2001
From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com>
Date: Fri, 7 Feb 2025 18:42:19 +0000
Subject: [PATCH] ci: apply automated fixes
---
docs/traffic-policy/examples/add-authentication.mdx | 7 ++++---
docs/traffic-policy/examples/index.mdx | 1 -
docs/traffic-policy/examples/route-requests.mdx | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/traffic-policy/examples/add-authentication.mdx b/docs/traffic-policy/examples/add-authentication.mdx
index 6a8ea4c04..966931816 100644
--- a/docs/traffic-policy/examples/add-authentication.mdx
+++ b/docs/traffic-policy/examples/add-authentication.mdx
@@ -2,6 +2,7 @@
title: Authentication Examples
sidebar_label: Authentication
---
+
import { JWTsRateLimiting } from "/traffic-policy/gallery/JWTsRateLimiting";
import { OAuthConditionalAccess } from "/traffic-policy/gallery/OAuthConditionalAccess";
import { OIDCIdentityToken } from "/traffic-policy/gallery/OIDCIdentityToken";
@@ -19,9 +20,9 @@ The following example adds key-based rate limiting to your endpoints based on yo
This example grants conditional access to a page using the following ngrok [OAuth action result variables](/traffic-policy/actions/oauth):
- `actions.ngrok.oauth.identity.email.endsWith('ngrok.com')`
- - Checks the email address of the authorized user from the provider. In the example, if the email address's domain is `ngrok.com`, the user will be granted access to the page.
+ - Checks the email address of the authorized user from the provider. In the example, if the email address's domain is `ngrok.com`, the user will be granted access to the page.
- `actions.ngrok.oauth.identity.name`
- - Gets the name of the authorized user from the provider. In this example, the name will be displayed in a welcome message or a rejection message depending on if the user is authenticated.
+ - Gets the name of the authorized user from the provider. In this example, the name will be displayed in a welcome message or a rejection message depending on if the user is authenticated.
@@ -29,4 +30,4 @@ This example grants conditional access to a page using the following ngrok [OAut
This example uses the `actions.ngrok.oidc.identity_token` [OIDC action result variable](/traffic-policy/actions/oidc/#action-result-variables) to send the OIDC identity token over headers to the service at the endpoint.
-
\ No newline at end of file
+
diff --git a/docs/traffic-policy/examples/index.mdx b/docs/traffic-policy/examples/index.mdx
index d50cc95eb..27e5972d2 100644
--- a/docs/traffic-policy/examples/index.mdx
+++ b/docs/traffic-policy/examples/index.mdx
@@ -27,7 +27,6 @@ Explore a curated collection of examples and configuration examples spanning fro
A number of these examples come from a longer article about how ngrok [makes policy management accessible](https://ngrok.com/blog-post/api-gateway-policy-management-examples) to developers, including a simple Go-based application for testing these and other configurations.
-
## Rate limit requests
### Rate limit for specific endpoint
diff --git a/docs/traffic-policy/examples/route-requests.mdx b/docs/traffic-policy/examples/route-requests.mdx
index 8d3713fe3..60143eb08 100644
--- a/docs/traffic-policy/examples/route-requests.mdx
+++ b/docs/traffic-policy/examples/route-requests.mdx
@@ -3,10 +3,10 @@ title: Route Request Example
sidebar_label: Route requests
---
+import { BasedOnHeaders } from "@site/traffic-policy/gallery/route-requests/BasedOnHeaders";
+import { BasedOnURL } from "@site/traffic-policy/gallery/route-requests/BasedOnURL";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
-import { BasedOnURL } from "@site/traffic-policy/gallery/route-requests/BasedOnURL";
-import { BasedOnHeaders } from "@site/traffic-policy/gallery/route-requests/BasedOnHeaders";
You can use [CEL
interpolation](/docs/traffic-policy/concepts/cel-interpolation) to
@@ -32,4 +32,4 @@ The following example forwards requests from `https://*.example.com` to `https:/
The following example forwards requests containing a `X-Customer-Value: {CUSTOMER}` header to `https://{CUSTOMER}.internal`.
-
\ No newline at end of file
+