For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication Enforcement

Overview

CloudGuard WAF’s Authentication Enforcement ensures that only authorized requests can access your protected web application. It validates incoming requests against the configured authentication type and can detect/block unauthenticated or improperly authenticated traffic.

How to set up Authentication Enforcement

Configuration Options

  • Authentication Type Currently, only JWT (JSON Web Token) is supported.

  • Existence Verification Ensures that an authentication token is present.

  • Authentication Expiration Validates that the token has not expired.

A default tolerance period of 5 minutes is applied to the expiration time.

  • Signature Verification Verifies the JWT using the uploaded public key.

Signature Verification supports the following asymmetric algorithms: RS256, RS512, ES256, ES385, ES512.

Unauthenticated Endpoints

By default, this protection applies to the entire asset.

  • If you want to exclude specific URIs, you can define them here.

Response Code for Unauthorized Access

To return a 401 Unauthorized response for blocked requests follow the steps bellow:

  1. create a dedicated Web User Response, with the following configurations:

    • Mode: Response Code Only

    • HTTP Response Code: 401

  1. Assign the Web User Response to the practice.

  1. Enforce Policy.

Last updated

Was this helpful?