Module api

Module api 

Source

Structs§

Firebaseappcheck
Central instance to access all Firebaseappcheck related resource activities
GoogleFirebaseAppcheckV1betaAppAttestConfig
An app’s App Attest configuration object. This configuration controls certain properties of the AppCheckToken returned by ExchangeAppAttestAttestation and ExchangeAppAttestAssertion, such as its ttl. Note that the Team ID registered with your app is used as part of the validation process. Please register it via the Firebase Console or programmatically via the Firebase Management Service.
GoogleFirebaseAppcheckV1betaAppCheckToken
Encapsulates an App Check token, which are used to access backend services protected by App Check.
GoogleFirebaseAppcheckV1betaAttestationTokenResponse
Encapsulates an App Check token, which are used to access Firebase services protected by App Check.
GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
Response message for the BatchGetAppAttestConfigs method.
GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
Response message for the BatchGetDeviceCheckConfigs method.
GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
Response message for the BatchGetPlayIntegrityConfigs method.
GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
Response message for the BatchGetRecaptchaConfigs method.
GoogleFirebaseAppcheckV1betaBatchGetRecaptchaEnterpriseConfigsResponse
Response message for the BatchGetRecaptchaEnterpriseConfigs method.
GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
Response message for the BatchGetRecaptchaV3Configs method.
GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
Response message for the BatchGetSafetyNetConfigs method.
GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest
Request message for the BatchUpdateResourcePolicies method.
GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse
Response message for the BatchUpdateResourcePolicies method.
GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
Request message for the BatchUpdateServices method.
GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse
Response message for the BatchUpdateServices method.
GoogleFirebaseAppcheckV1betaDebugToken
A debug token is a secret used during the development or integration testing of an app. It essentially allows the development or integration testing to bypass app attestation while still allowing App Check to enforce protection on supported production Firebase services.
GoogleFirebaseAppcheckV1betaDeviceCheckConfig
An app’s DeviceCheck configuration object. This configuration is used by ExchangeDeviceCheckToken to validate device tokens issued to apps by DeviceCheck. It also controls certain properties of the returned AppCheckToken, such as its ttl. Note that the Team ID registered with your app is used as part of the validation process. Please register it via the Firebase Console or programmatically via the Firebase Management Service.
GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest
Request message for the ExchangeAppAttestAssertion method.
GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
Request message for the ExchangeAppAttestAttestation method.
GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
Response message for the ExchangeAppAttestAttestation method.
GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
Request message for the ExchangeCustomToken method.
GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest
Request message for the ExchangeDebugToken method.
GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
Request message for the ExchangeDeviceCheckToken method.
GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
Request message for the ExchangePlayIntegrityToken method.
GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
Request message for the ExchangeRecaptchaEnterpriseToken method.
GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest
Request message for the ExchangeRecaptchaToken method.
GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
Request message for the ExchangeRecaptchaV3Token method.
GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
Request message for the ExchangeSafetyNetToken method.
GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest
Request message for the GenerateAppAttestChallenge method.
GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
Response message for the GenerateAppAttestChallenge method.
GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest
Request message for the GeneratePlayIntegrityChallenge method.
GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
Response message for the GeneratePlayIntegrityChallenge method.
GoogleFirebaseAppcheckV1betaListDebugTokensResponse
Response message for the ListDebugTokens method.
GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse
Response message for the ListResourcePolicies method.
GoogleFirebaseAppcheckV1betaListServicesResponse
Response message for the ListServices method.
GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
An app’s Play Integrity configuration object. This configuration controls certain properties of the AppCheckToken returned by ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by the Play Integrity API; please register them via the Firebase Console or programmatically via the Firebase Management Service.
GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails
A settings object specifying account requirements for Android devices running your app. These settings correspond to requirements on the account details field obtained from the Play Integrity API. See the default responses table for a quick summary. The default values for these settings work for most apps, and are recommended.
GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity
A settings object specifying application integrity requirements for Android devices running your app. These settings correspond to requirements on the application integrity field obtained from the Play Integrity API. See the default responses table for a quick summary. The default values for these settings work for most apps, and are recommended.
GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity
A settings object specifying device integrity requirements for Android devices running your app. These settings correspond to requirements on the device integrity field obtained from the Play Integrity API. See the default responses table for a quick summary. Warning: There are also conditional as well as optional responses that you can receive, but requires additional explicit opt-in from you. The App Check API is not responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended.
GoogleFirebaseAppcheckV1betaPublicJwk
A JWK as specified by section 4 of RFC 7517 and section 6.3.1 of RFC 7518.
GoogleFirebaseAppcheckV1betaPublicJwkSet
The currently active set of public keys that can be used to verify App Check tokens. This object is a JWK set as specified by section 5 of RFC 7517. For security, the response must not be cached for longer than six hours.
GoogleFirebaseAppcheckV1betaRecaptchaConfig
An app’s reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned AppCheckToken, such as its ttl.
GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig
An app’s reCAPTCHA Enterprise configuration object. This configuration is used by ExchangeRecaptchaEnterpriseToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA Enterprise. It also controls certain properties of the returned AppCheckToken, such as its ttl.
GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis
A settings object specifying risk tolerance and requirements for your application. These settings correspond to requirements on the riskAnalysis tuple in the assessment obtained from reCAPTCHA Enterprise. The default values for these settings work for most apps, and are recommended.
GoogleFirebaseAppcheckV1betaRecaptchaV3Config
An app’s reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned AppCheckToken, such as its ttl.
GoogleFirebaseAppcheckV1betaResourcePolicy
App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
GoogleFirebaseAppcheckV1betaSafetyNetConfig
An app’s SafetyNet configuration object. This configuration controls certain properties of the AppCheckToken returned by ExchangeSafetyNetToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the Firebase Management Service.
GoogleFirebaseAppcheckV1betaService
The enforcement configuration for a Firebase service supported by App Check.
GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest
Request message for the UpdateResourcePolicy method as well as an individual update message for the BatchUpdateResourcePolicies method.
GoogleFirebaseAppcheckV1betaUpdateServiceRequest
Request message for the UpdateService method as well as an individual update message for the BatchUpdateServices method.
GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest
Request message for the VerifyAppCheckToken method.
GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
Response message for the VerifyAppCheckToken method.
GoogleProtobufEmpty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
JwkGetCall
Returns a public JWK set as specified by RFC 7517 that can be used to verify App Check tokens. Exactly one of the public keys in the returned set will successfully validate any App Check token that is currently valid.
JwkMethods
A builder providing access to all methods supported on jwk resources. It is not used directly, but through the Firebaseappcheck hub.
OauthClientExchangeAppAttestAssertionCall
Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.
OauthClientExchangeAppAttestAttestationCall
Accepts 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).
OauthClientExchangeDebugTokenCall
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.
OauthClientGenerateAppAttestChallengeCall
Generates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.
OauthClientMethods
A builder providing access to all methods supported on oauthClient resources. It is not used directly, but through the Firebaseappcheck hub.
ProjectAppAppAttestConfigBatchGetCall
Atomically gets the AppAttestConfigs for the specified list of apps.
ProjectAppAppAttestConfigGetCall
Gets the AppAttestConfig for the specified app.
ProjectAppAppAttestConfigPatchCall
Updates the AppAttestConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange AppAttest tokens for App Check tokens.
ProjectAppDebugTokenCreateCall
Creates a new DebugToken for the specified app. For security reasons, after the creation operation completes, the token field cannot be updated or retrieved, but you can revoke the debug token using DeleteDebugToken. Each app can have a maximum of 20 debug tokens.
ProjectAppDebugTokenDeleteCall
Deletes the specified DebugToken. A deleted debug token cannot be used to exchange for an App Check token. Use this method when you suspect the secret token has been compromised or when you no longer need the debug token.
ProjectAppDebugTokenGetCall
Gets the specified DebugToken. For security reasons, the token field is never populated in the response.
ProjectAppDebugTokenListCall
Lists all DebugTokens for the specified app. For security reasons, the token field is never populated in the response.
ProjectAppDebugTokenPatchCall
Updates the specified DebugToken. For security reasons, the token field cannot be updated, nor will it be populated in the response, but you can revoke the debug token using DeleteDebugToken.
ProjectAppDeviceCheckConfigBatchGetCall
Atomically gets the DeviceCheckConfigs for the specified list of apps. For security reasons, the private_key field is never populated in the response.
ProjectAppDeviceCheckConfigGetCall
Gets the DeviceCheckConfig for the specified app. For security reasons, the private_key field is never populated in the response.
ProjectAppDeviceCheckConfigPatchCall
Updates the DeviceCheckConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange DeviceCheck tokens for App Check tokens. For security reasons, the private_key field is never populated in the response.
ProjectAppExchangeAppAttestAssertionCall
Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.
ProjectAppExchangeAppAttestAttestationCall
Accepts 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).
ProjectAppExchangeCustomTokenCall
Validates a custom token signed using your project’s Admin SDK service account credentials. If valid, returns an AppCheckToken.
ProjectAppExchangeDebugTokenCall
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.
ProjectAppExchangeDeviceCheckTokenCall
Accepts a device_token issued by DeviceCheck, and attempts to validate it with Apple. If valid, returns an AppCheckToken.
ProjectAppExchangePlayIntegrityTokenCall
Validates an integrity verdict response token from Play Integrity. If valid, returns an AppCheckToken.
ProjectAppExchangeRecaptchaEnterpriseTokenCall
Validates a reCAPTCHA Enterprise response token. If valid, returns an App Check token AppCheckToken.
ProjectAppExchangeRecaptchaTokenCall
Validates a reCAPTCHA v3 response token. If valid, returns an AppCheckToken.
ProjectAppExchangeRecaptchaV3TokenCall
Validates a reCAPTCHA v3 response token. If valid, returns an AppCheckToken.
ProjectAppExchangeSafetyNetTokenCall
Validates a SafetyNet token. If valid, returns an AppCheckToken.
ProjectAppGenerateAppAttestChallengeCall
Generates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.
ProjectAppGeneratePlayIntegrityChallengeCall
Generates a challenge that protects the integrity of an immediately following integrity verdict request to the Play Integrity API. The next call to ExchangePlayIntegrityToken using the resulting integrity token will verify the presence and validity of the challenge. A challenge should not be reused for multiple calls.
ProjectAppPlayIntegrityConfigBatchGetCall
Atomically gets the PlayIntegrityConfigs for the specified list of apps.
ProjectAppPlayIntegrityConfigGetCall
Gets the PlayIntegrityConfig for the specified app.
ProjectAppPlayIntegrityConfigPatchCall
Updates the PlayIntegrityConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange Play Integrity tokens for App Check tokens.
ProjectAppRecaptchaConfigBatchGetCall
Atomically gets the RecaptchaConfigs for the specified list of apps. For security reasons, the site_secret field is never populated in the response.
ProjectAppRecaptchaConfigGetCall
Gets the RecaptchaConfig for the specified app. For security reasons, the site_secret field is never populated in the response.
ProjectAppRecaptchaConfigPatchCall
Updates the RecaptchaConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.
ProjectAppRecaptchaEnterpriseConfigBatchGetCall
Atomically gets the RecaptchaEnterpriseConfigs for the specified list of apps.
ProjectAppRecaptchaEnterpriseConfigGetCall
Gets the RecaptchaEnterpriseConfig for the specified app.
ProjectAppRecaptchaEnterpriseConfigPatchCall
Updates the RecaptchaEnterpriseConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA Enterprise tokens for App Check tokens.
ProjectAppRecaptchaV3ConfigBatchGetCall
Atomically gets the RecaptchaV3Configs for the specified list of apps. For security reasons, the site_secret field is never populated in the response.
ProjectAppRecaptchaV3ConfigGetCall
Gets the RecaptchaV3Config for the specified app. For security reasons, the site_secret field is never populated in the response.
ProjectAppRecaptchaV3ConfigPatchCall
Updates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.
ProjectAppSafetyNetConfigBatchGetCall
Atomically gets the SafetyNetConfigs for the specified list of apps.
ProjectAppSafetyNetConfigGetCall
Gets the SafetyNetConfig for the specified app.
ProjectAppSafetyNetConfigPatchCall
Updates the SafetyNetConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange SafetyNet tokens for App Check tokens.
ProjectMethods
A builder providing access to all methods supported on project resources. It is not used directly, but through the Firebaseappcheck hub.
ProjectServiceBatchUpdateCall
Atomically updates the specified Service configurations.
ProjectServiceGetCall
Gets the Service configuration for the specified service name.
ProjectServiceListCall
Lists all Service configurations for the specified project. Only Services which were explicitly configured using UpdateService or BatchUpdateServices will be returned.
ProjectServicePatchCall
Updates the specified Service configuration.
ProjectServiceResourcePolicyBatchUpdateCall
Atomically updates the specified ResourcePolicy configurations.
ProjectServiceResourcePolicyCreateCall
Creates the specified ResourcePolicy configuration.
ProjectServiceResourcePolicyDeleteCall
Deletes the specified ResourcePolicy configuration.
ProjectServiceResourcePolicyGetCall
Gets the requested ResourcePolicy configuration.
ProjectServiceResourcePolicyListCall
Lists all ResourcePolicy configurations for the specified project and service.
ProjectServiceResourcePolicyPatchCall
Updates the specified ResourcePolicy configuration.
ProjectVerifyAppCheckTokenCall
Verifies the given App Check token and returns token usage signals that callers may act upon. This method currently only supports App Check tokens exchanged from the following attestation providers: * Play Integrity API * App Attest * DeviceCheck (DCDevice tokens) * reCAPTCHA Enterprise * reCAPTCHA v3 * Custom providers App Check tokens exchanged from debug secrets are also supported. Calling this method on an otherwise valid App Check token with an unsupported provider will cause an HTTP 400 error to be returned. Returns whether this token was already consumed before this call. If this is the first time this method has seen the given App Check token, the field already_consumed in the response will be absent. The given token will then be marked as already_consumed (set to true) for all future invocations of this method for that token. Note that if the given App Check token is invalid, an HTTP 403 error is returned instead of a response object, regardless whether the token was already consumed. Currently, when evaluating whether an App Check token was already consumed, only calls to this exact method are counted. Use of the App Check token elsewhere will not mark the token as being already consumed. The caller must have the firebaseappcheck.appCheckTokens.verify permission to call this method. This permission is part of the Firebase App Check Token Verifier role.

Enums§

Scope
Identifies the an OAuth2 authorization scope. A scope is needed when requesting an authorization token.