# Google Cloud IoT Core V1 Client - Class GatewayAuthMethod (1.7.5)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.7.5 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.GatewayAuthMethod)
- [1.7.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.7.4/V1.GatewayAuthMethod)
- [1.6.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.6.4/V1.GatewayAuthMethod)
- [1.5.12](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.5.12/V1.GatewayAuthMethod)
Reference documentation and code samples for the Google Cloud IoT Core V1 Client class GatewayAuthMethod.

The gateway authorization/authentication method. This setting determines how
Cloud IoT Core authorizes/authenticate devices to access the gateway.

Protobuf type `google.cloud.iot.v1.GatewayAuthMethod`

## Namespace

Google \\ Cloud \\ Iot \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### GATEWAY_AUTH_METHOD_UNSPECIFIED

    Value: 0

No authentication/authorization method specified. No devices are allowed to
access the gateway.

Generated from protobuf enum `GATEWAY_AUTH_METHOD_UNSPECIFIED = 0;`

### ASSOCIATION_ONLY

    Value: 1

The device is authenticated through the gateway association only. Device
credentials are ignored even if provided.

Generated from protobuf enum `ASSOCIATION_ONLY = 1;`

### DEVICE_AUTH_TOKEN_ONLY

    Value: 2

The device is authenticated through its own credentials. Gateway
association is not checked.

Generated from protobuf enum `DEVICE_AUTH_TOKEN_ONLY = 2;`

### ASSOCIATION_AND_DEVICE_AUTH_TOKEN

    Value: 3

The device is authenticated through both device credentials and gateway
association. The device must be bound to the gateway and must provide its
own credentials.

Generated from protobuf enum `ASSOCIATION_AND_DEVICE_AUTH_TOKEN = 3;`