The gateway authorization/authentication method. This setting
determines how Cloud IoT Core authorizes/authenticate devices to
access the gateway.
Values:
GATEWAY_AUTH_METHOD_UNSPECIFIED (0):
No authentication/authorization method
specified. No devices are allowed to access the
gateway.
ASSOCIATION_ONLY (1):
The device is authenticated through the
gateway association only. Device credentials are
ignored even if provided.
DEVICE_AUTH_TOKEN_ONLY (2):
The device is authenticated through its own
credentials. Gateway association is not checked.
ASSOCIATION_AND_DEVICE_AUTH_TOKEN (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-08-07 UTC."],[],[],null,["# Class GatewayAuthMethod (2.9.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.2 (latest)](/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.9.1](/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.8.1](/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.7.0](/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.6.4](/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.5.1](/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.4.1](/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.3.0](/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.2.1](/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.1.0](/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [2.0.2](/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [1.0.2](/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.GatewayAuthMethod)\n- [0.3.3](/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.GatewayAuthMethod) \n\n GatewayAuthMethod(value)\n\nThe gateway authorization/authentication method. This setting\ndetermines how Cloud IoT Core authorizes/authenticate devices to\naccess the gateway.\n\nValues:\nGATEWAY_AUTH_METHOD_UNSPECIFIED (0):\nNo authentication/authorization method\nspecified. No devices are allowed to access the\ngateway.\nASSOCIATION_ONLY (1):\nThe device is authenticated through the\ngateway association only. Device credentials are\nignored even if provided.\nDEVICE_AUTH_TOKEN_ONLY (2):\nThe device is authenticated through its own\ncredentials. Gateway association is not checked.\nASSOCIATION_AND_DEVICE_AUTH_TOKEN (3):\nThe device is authenticated through both\ndevice credentials and gateway association. The\ndevice must be bound to the gateway and must\nprovide its own credentials."]]