Reference documentation and code samples for the Cloud IoT V1 API module Google::Cloud::Iot::V1::GatewayAuthMethod.
The gateway authorization/authentication method. This setting determines how
Cloud IoT Core authorizes/authenticate devices to access the gateway.
Constants
GATEWAY_AUTH_METHOD_UNSPECIFIED
value: 0 No authentication/authorization method specified. No devices are allowed to
access the gateway.
ASSOCIATION_ONLY
value: 1 The device is authenticated through the gateway association only. Device
credentials are ignored even if provided.
DEVICE_AUTH_TOKEN_ONLY
value: 2 The device is authenticated through its own credentials. Gateway
association is not checked.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud IoT V1 API - Module Google::Cloud::Iot::V1::GatewayAuthMethod (v0.9.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.2 (latest)](/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.9.1](/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.8.0](/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.7.1](/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.6.0](/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.5.0](/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.4.0](/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Cloud-Iot-V1-GatewayAuthMethod)\n- [0.3.5](/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Cloud-Iot-V1-GatewayAuthMethod) \nReference documentation and code samples for the Cloud IoT V1 API module Google::Cloud::Iot::V1::GatewayAuthMethod.\n\nThe gateway authorization/authentication method. This setting determines how\nCloud IoT Core authorizes/authenticate devices to access the gateway.\n\nConstants\n---------\n\n### GATEWAY_AUTH_METHOD_UNSPECIFIED\n\n**value:** 0 \nNo authentication/authorization method specified. No devices are allowed to\naccess the gateway.\n\n### ASSOCIATION_ONLY\n\n**value:** 1 \nThe device is authenticated through the gateway association only. Device\ncredentials are ignored even if provided.\n\n### DEVICE_AUTH_TOKEN_ONLY\n\n**value:** 2 \nThe device is authenticated through its own credentials. Gateway\nassociation is not checked.\n\n### ASSOCIATION_AND_DEVICE_AUTH_TOKEN\n\n**value:** 3 \nThe device is authenticated through both device credentials and gateway\nassociation. The device must be bound to the gateway and must provide its\nown credentials."]]