Authentication#
Note
Viewing documentation for the current version v1.
The required Protobuf definitions can be downloaded here:
BoardingAuthenticationService#
The BoardingAuthenticationService offers functionality to authenticate for autonomous trips ordered via the TripStateService.
ListBoardingAuthenticationMethods#
rpc
ListBoardingAuthenticationMethods(ListBoardingAuthenticationMethodsRequest) returns (ListBoardingAuthenticationMethodsResponse)
Lists boarding authentication methods available on the vehicle assigned to the trip. Only relevant for autonomous vehicles.
This is a customer-scoped endpoint. The ID of the customer on behalf of whom the operation is requested needs to be provided in the request header ("Customer-Id: <your-customer-id>").
Fails with PERMISSION_DENIED with the following reasons:
CUSTOMER_ID_MISSINGif the customer ID is not present in the request header.CUSTOMER_UNAUTHENTICATEDif the trip does not belong to the provided customer or the customer does not exist.
Fails with INVALID_ARGUMENT with the following reasons:
INVALID_PAGE_SIZEif thepage_sizeis less than zero.INVALID_PAGE_TOKENif thepage_tokendoes not match previous requests.
Fails with NOT_FOUND with the reason TRIP_NOT_FOUND if there is no trip for the requested trip ID.
AuthenticateForBoarding#
rpc
AuthenticateForBoarding(AuthenticateForBoardingRequest) returns (AuthenticateForBoardingResponse)
Authenticates the customer for boarding the vehicle. Only relevant for autonomous vehicles and the boarding authentication method ApiBoardingAuthentication.
This is a customer-scoped endpoint. The ID of the customer on behalf of whom the operation is requested needs to be provided in the request header ("Customer-Id: <your-customer-id>").
Fails with PERMISSION_DENIED with the following reasons:
CUSTOMER_ID_MISSINGif the customer ID is not present in the request header.CUSTOMER_UNAUTHENTICATEDif the trip does not belong to the provided customer or the customer does not exist.
Fails with NOT_FOUND with the reason TRIP_NOT_FOUND if there is no trip for the requested trip ID.
Fails with FAILED_PRECONDITION with the reason TRIP_STATE_INVALID if the trip is not in StateInFulfillment.PHASE_READY_FOR_BOARDING_AUTHENTICATION.
Messages#
ApiBoardingAuthentication#
The boarding authentication method where a token is displayed on the vehicle. The customer authenticates by sending the token via the Trip API using the AuthenticateForBoarding RPC.
This message is an empty message and has no fields. The JSON representation is {}.
AuthenticateForBoardingRequest#
Request message for authenticating the customer for boarding an autonomous vehicle.
Field | Type | Description |
|---|---|---|
| string | The ID of the trip the customer wants to authenticate for. |
| string | The boarding authentication token provided on the vehicle. |
AuthenticateForBoardingResponse#
Response to a successful boarding authentication request.
This message is an empty message and has no fields. The JSON representation is {}.
BoardingAuthenticationMethod#
A method for authenticating when boarding an autonomous vehicle.
Field | Type | Description |
|---|---|---|
oneof boarding_authentication_method. | API boarding authentication is always available as a fallback boarding authentication method. |
ListBoardingAuthenticationMethodsRequest#
Request message for listing the boarding authentication methods available on the vehicle assigned to the trip.
Field | Type | Description |
|---|---|---|
| string | The ID of the trip for which to list the boarding authentication methods. |
| optional int32 | The maximum number of boarding authentication methods to return. The service may return fewer than this value. If unspecified or set to zero, at most 50 boarding authentication methods will be returned. The maximum value is 100; values above 100 will be coerced to 100. Negative values won’t be accepted. |
| optional string | A page token, received from a previous |
ListBoardingAuthenticationMethodsResponse#
Returns boarding authentication methods available on the vehicle assigned to the trip.
Field | Type | Description |
|---|---|---|
| repeated BoardingAuthenticationMethod | List of boarding authentication methods from which one needs to be chosen to authenticate for boarding. |
| optional string | A token, which can be sent as |