JWT authentication
This rule adds key-based rate limiting to your endpoints based on your consumers’ JWTs. See the Auth0 guide for more information.rate-limit
Traffic Policy action docs for more information.
Conditional access using OAuth variables
This rule grants conditional access to a page using the following ngrok OAuth action result variables: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
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.
oauth
Traffic Policy action docs for more information.
Sending an OIDC identity token over headers
This rule uses theactions.ngrok.oidc.identity_token
OIDC action result variable to send the OIDC identity token over headers to the service at the endpoint.
openid-connect
Traffic Policy action docs for more information.