# Cloud Identity-Aware Proxy v1 API - Class AccessDeniedPageSettings (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class AccessDeniedPageSettings : IMessage<AccessDeniedPageSettings>, IEquatable<AccessDeniedPageSettings>, IDeepCloneable<AccessDeniedPageSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Identity-Aware Proxy v1 API class AccessDeniedPageSettings.

Custom content configuration for access denied page.
IAP allows customers to define a custom URI to use as the error page when
access is denied to users. If IAP prevents access to this page, the default
IAP error page will be displayed instead.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AccessDeniedPageSettings

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AccessDeniedPageSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AccessDeniedPageSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AccessDeniedPageSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Iap.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1)

## Assembly

Google.Cloud.Iap.V1.dll

## Constructors

### AccessDeniedPageSettings()

    public AccessDeniedPageSettings()

### AccessDeniedPageSettings(AccessDeniedPageSettings)

    public AccessDeniedPageSettings(AccessDeniedPageSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings` |

## Properties

### AccessDeniedPageUri

    public string AccessDeniedPageUri { get; set; }

The URI to be redirected to when access is denied.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### GenerateTroubleshootingUri

    public bool? GenerateTroubleshootingUri { get; set; }

Whether to generate a troubleshooting URL on access denied events to this
application.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### RemediationTokenGenerationEnabled

    public bool? RemediationTokenGenerationEnabled { get; set; }

Whether to generate remediation token on access denied events to this
application.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |