google-apis-firebaseappcheck_v1 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/firebaseappcheck_v1/classes.rb +86 -0
- data/lib/google/apis/firebaseappcheck_v1/gem_version.rb +2 -2
- data/lib/google/apis/firebaseappcheck_v1/representations.rb +42 -0
- data/lib/google/apis/firebaseappcheck_v1/service.rb +42 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9b24c101be7d1a523b06da621b2ef62504d2b68308ec278f52a97f3f1410ab9
|
|
4
|
+
data.tar.gz: 2f692c33d42e438fc5967323dbe850fde4af15e27df271452e480bbb2cc0716e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8b9b10a113f53259c3dd62e1ecb83c72b6ae6abd527c25973cdf692f9070722512ec73ed8789dc946cafcee45b486333d6ff5f3ece9eec29c9765d1a2c1e386
|
|
7
|
+
data.tar.gz: e0aa818e963f8d38e44e0d190410824439cacc4df49c964a2cf13e9a07db0c7043382a441350cfa8a21cb89539665b4548027473ba519311bcc74e6d9183aaa0
|
data/CHANGELOG.md
CHANGED
|
@@ -799,6 +799,32 @@ module Google
|
|
|
799
799
|
end
|
|
800
800
|
end
|
|
801
801
|
|
|
802
|
+
# Configuration for a limited-use App Check token.
|
|
803
|
+
class GoogleFirebaseAppcheckV1LimitedUseConfig
|
|
804
|
+
include Google::Apis::Core::Hashable
|
|
805
|
+
|
|
806
|
+
# Optional. Specifies the desired `jti` claim (Section 4.1.7 of RFC 7519) in the
|
|
807
|
+
# returned App Check token. Limited-use App Check tokens with the same `jti`
|
|
808
|
+
# will be counted as the same token for the purposes of replay protection. The
|
|
809
|
+
# size of this field is limited to 500 bytes. If specified, its length must be
|
|
810
|
+
# at least 16 bytes. If this field is omitted or is empty, a randomly generated `
|
|
811
|
+
# jti` claim with length between 16 and 500 bytes (inclusive) will be used in
|
|
812
|
+
# the returned App Check token. Leaving this field empty is only recommended if
|
|
813
|
+
# your custom attestation provider itself is not vulnerable to replay attacks.
|
|
814
|
+
# Corresponds to the JSON property `jti`
|
|
815
|
+
# @return [String]
|
|
816
|
+
attr_accessor :jti
|
|
817
|
+
|
|
818
|
+
def initialize(**args)
|
|
819
|
+
update!(**args)
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
# Update properties of this object
|
|
823
|
+
def update!(**args)
|
|
824
|
+
@jti = args[:jti] if args.key?(:jti)
|
|
825
|
+
end
|
|
826
|
+
end
|
|
827
|
+
|
|
802
828
|
# Response message for the ListDebugTokens method.
|
|
803
829
|
class GoogleFirebaseAppcheckV1ListDebugTokensResponse
|
|
804
830
|
include Google::Apis::Core::Hashable
|
|
@@ -886,6 +912,66 @@ module Google
|
|
|
886
912
|
end
|
|
887
913
|
end
|
|
888
914
|
|
|
915
|
+
# Request message for the MintAppCheckToken method.
|
|
916
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenRequest
|
|
917
|
+
include Google::Apis::Core::Hashable
|
|
918
|
+
|
|
919
|
+
# Configuration for a limited-use App Check token.
|
|
920
|
+
# Corresponds to the JSON property `limitedUseConfig`
|
|
921
|
+
# @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1LimitedUseConfig]
|
|
922
|
+
attr_accessor :limited_use_config
|
|
923
|
+
|
|
924
|
+
# Optional. If specified, the returned App Check token will be a session token,
|
|
925
|
+
# valid for the specified duration. Must be between 30 minutes and 7 days,
|
|
926
|
+
# inclusive.
|
|
927
|
+
# Corresponds to the JSON property `tokenTtl`
|
|
928
|
+
# @return [String]
|
|
929
|
+
attr_accessor :token_ttl
|
|
930
|
+
|
|
931
|
+
def initialize(**args)
|
|
932
|
+
update!(**args)
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
# Update properties of this object
|
|
936
|
+
def update!(**args)
|
|
937
|
+
@limited_use_config = args[:limited_use_config] if args.key?(:limited_use_config)
|
|
938
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
|
939
|
+
end
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
# Response message for the MintAppCheckToken method.
|
|
943
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenResponse
|
|
944
|
+
include Google::Apis::Core::Hashable
|
|
945
|
+
|
|
946
|
+
# The App Check token, used to access backend services protected by App Check.
|
|
947
|
+
# App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519)
|
|
948
|
+
# containing claims that identify the attested app and GCP project. This token
|
|
949
|
+
# is used to access Google services protected by App Check. These tokens can
|
|
950
|
+
# also be [verified by your own custom backends](https://firebase.google.com/
|
|
951
|
+
# docs/app-check/custom-resource-backend) using the Firebase Admin SDK or third-
|
|
952
|
+
# party libraries.
|
|
953
|
+
# Corresponds to the JSON property `token`
|
|
954
|
+
# @return [String]
|
|
955
|
+
attr_accessor :token
|
|
956
|
+
|
|
957
|
+
# The duration from the time this token is minted until its expiration. This
|
|
958
|
+
# field is intended to ease client-side token management, since the client may
|
|
959
|
+
# have clock skew, but is still able to accurately measure a duration.
|
|
960
|
+
# Corresponds to the JSON property `ttl`
|
|
961
|
+
# @return [String]
|
|
962
|
+
attr_accessor :ttl
|
|
963
|
+
|
|
964
|
+
def initialize(**args)
|
|
965
|
+
update!(**args)
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
# Update properties of this object
|
|
969
|
+
def update!(**args)
|
|
970
|
+
@token = args[:token] if args.key?(:token)
|
|
971
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
972
|
+
end
|
|
973
|
+
end
|
|
974
|
+
|
|
889
975
|
# An app's Play Integrity configuration object. This configuration controls
|
|
890
976
|
# certain properties of the `AppCheckToken` returned by
|
|
891
977
|
# ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module FirebaseappcheckV1
|
|
18
18
|
# Version of the google-apis-firebaseappcheck_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.26.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260822"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -178,6 +178,12 @@ module Google
|
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
class GoogleFirebaseAppcheckV1LimitedUseConfig
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
181
187
|
class GoogleFirebaseAppcheckV1ListDebugTokensResponse
|
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
189
|
|
|
@@ -196,6 +202,18 @@ module Google
|
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
197
203
|
end
|
|
198
204
|
|
|
205
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenRequest
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenResponse
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
199
217
|
class GoogleFirebaseAppcheckV1PlayIntegrityConfig
|
|
200
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
219
|
|
|
@@ -498,6 +516,13 @@ module Google
|
|
|
498
516
|
end
|
|
499
517
|
end
|
|
500
518
|
|
|
519
|
+
class GoogleFirebaseAppcheckV1LimitedUseConfig
|
|
520
|
+
# @private
|
|
521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
522
|
+
property :jti, as: 'jti'
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
501
526
|
class GoogleFirebaseAppcheckV1ListDebugTokensResponse
|
|
502
527
|
# @private
|
|
503
528
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -525,6 +550,23 @@ module Google
|
|
|
525
550
|
end
|
|
526
551
|
end
|
|
527
552
|
|
|
553
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenRequest
|
|
554
|
+
# @private
|
|
555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
556
|
+
property :limited_use_config, as: 'limitedUseConfig', class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1LimitedUseConfig, decorator: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1LimitedUseConfig::Representation
|
|
557
|
+
|
|
558
|
+
property :token_ttl, as: 'tokenTtl'
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
class GoogleFirebaseAppcheckV1MintAppCheckTokenResponse
|
|
563
|
+
# @private
|
|
564
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
565
|
+
property :token, as: 'token'
|
|
566
|
+
property :ttl, as: 'ttl'
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
528
570
|
class GoogleFirebaseAppcheckV1PlayIntegrityConfig
|
|
529
571
|
# @private
|
|
530
572
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -640,6 +640,48 @@ module Google
|
|
|
640
640
|
execute_or_queue_command(command, &block)
|
|
641
641
|
end
|
|
642
642
|
|
|
643
|
+
# Mints a new App Check token for the specified Firebase App. This method is
|
|
644
|
+
# intended to be called from a privileged environment where the caller can be
|
|
645
|
+
# authorized via Cloud IAM; for example, using a service account. To call this
|
|
646
|
+
# method, the caller must have the [`firebaseappcheck.googleapis.com/tokens.mint`
|
|
647
|
+
# ](https://firebase.google.com/docs/projects/iam/permissions#app-check)
|
|
648
|
+
# permission. Returns a MintAppCheckTokenResponse.
|
|
649
|
+
# @param [String] app
|
|
650
|
+
# Required. The relative resource name of the app, in the format: ``` projects/`
|
|
651
|
+
# project_number`/apps/`app_id` ``` If necessary, the `project_number` element
|
|
652
|
+
# can be replaced with the project ID of the Firebase project. Learn more about
|
|
653
|
+
# using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
|
|
654
|
+
# 2510) standard.
|
|
655
|
+
# @param [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenRequest] google_firebase_appcheck_v1_mint_app_check_token_request_object
|
|
656
|
+
# @param [String] fields
|
|
657
|
+
# Selector specifying which fields to include in a partial response.
|
|
658
|
+
# @param [String] quota_user
|
|
659
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
660
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
661
|
+
# @param [Google::Apis::RequestOptions] options
|
|
662
|
+
# Request-specific options
|
|
663
|
+
#
|
|
664
|
+
# @yield [result, err] Result & error if block supplied
|
|
665
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenResponse] parsed result object
|
|
666
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
667
|
+
#
|
|
668
|
+
# @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenResponse]
|
|
669
|
+
#
|
|
670
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
671
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
672
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
673
|
+
def mint_project_app_app_check_token(app, google_firebase_appcheck_v1_mint_app_check_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
674
|
+
command = make_simple_command(:post, 'v1/{+app}:mintAppCheckToken', options)
|
|
675
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenRequest::Representation
|
|
676
|
+
command.request_object = google_firebase_appcheck_v1_mint_app_check_token_request_object
|
|
677
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenResponse::Representation
|
|
678
|
+
command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1MintAppCheckTokenResponse
|
|
679
|
+
command.params['app'] = app unless app.nil?
|
|
680
|
+
command.query['fields'] = fields unless fields.nil?
|
|
681
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
682
|
+
execute_or_queue_command(command, &block)
|
|
683
|
+
end
|
|
684
|
+
|
|
643
685
|
# Atomically gets the AppAttestConfigs for the specified list of apps.
|
|
644
686
|
# @param [String] parent
|
|
645
687
|
# Required. The parent project name shared by all AppAttestConfigs being
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-firebaseappcheck_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1/v0.26.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|