# Configure Human Approval with Dtwo Authentication

Set up human approval for a gateway that signs users in through Dtwo.

## Overview

This guide turns on human approval for gateways that sign users in through Dtwo authentication.

## Configure your Dtwo gateway

Go to your gateway in the Dtwo UI and open **Configuration → Advanced**. In the `gateway` section, add a `session_control` entry next to your existing `authentication` entry:

```yaml
session_control:
  clearing:
    enabled: true
```

Save and deploy your gateway.

## Test an approval

In your AI client, ask the agent to do something that needs approval. For example, invoke a policy that enables a dynamic safeguard and ask to disable the safeguard. The agent returns a link.

Open the link and sign in to Dtwo as the same user your AI client is signed in as, then approve the action. You may be asked to sign in again even if you're already signed in — that's expected.

---

Having trouble? Email [support@dtwo.ai](mailto:support@dtwo.ai).