Skip to main content

oauth_clients

Creates, updates, deletes, gets or lists an oauth_clients resource.

Overview

Nameoauth_clients
TypeResource
Idfirebase.appcheck.oauth_clients

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
exchange_debug_tokenexecoauthClientsIdValidates a debug token secret that you have previously created using CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive quota is enforced on this method to prevent accidental exposure of the app to abuse.
generate_app_attest_challengeexecoauthClientsIdGenerates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.
exchange_app_attest_attestationexecoauthClientsIdAccepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).
exchange_app_attest_assertionexecoauthClientsIdAccepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
oauthClientsIdstring

Lifecycle Methods

Validates a debug token secret that you have previously created using CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive quota is enforced on this method to prevent accidental exposure of the app to abuse.

EXEC firebase.appcheck.oauth_clients.exchange_debug_token 
@oauthClientsId='{{ oauthClientsId }}' --required
@@json=
'{
"debugToken": "{{ debugToken }}",
"limitedUse": {{ limitedUse }}
}';