123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- syntax = "proto3";
- package google.cloud.identitytoolkit.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/cloud/identitytoolkit/v2/mfa_info.proto";
- option csharp_namespace = "Google.Cloud.IdentityToolkit.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/identitytoolkit/v2;identitytoolkit";
- option java_multiple_files = true;
- option java_package = "com.google.cloud.identitytoolkit.v2";
- option php_namespace = "Google\\Cloud\\IdentityToolkit\\V2";
- option ruby_package = "Google::Cloud::IdentityToolkit::V2";
- service AuthenticationService {
- option (google.api.default_host) = "identitytoolkit.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc FinalizeMfaSignIn(FinalizeMfaSignInRequest) returns (FinalizeMfaSignInResponse) {
- option (google.api.http) = {
- post: "/v2/accounts/mfaSignIn:finalize"
- body: "*"
- };
- }
-
- rpc StartMfaSignIn(StartMfaSignInRequest) returns (StartMfaSignInResponse) {
- option (google.api.http) = {
- post: "/v2/accounts/mfaSignIn:start"
- body: "*"
- };
- }
- }
- message FinalizeMfaSignInRequest {
-
- string mfa_pending_credential = 2 [(google.api.field_behavior) = REQUIRED];
-
- oneof verification_info {
-
- FinalizeMfaPhoneRequestInfo phone_verification_info = 3;
- }
-
-
- string tenant_id = 4;
- }
- message FinalizeMfaSignInResponse {
-
- string id_token = 1;
-
- string refresh_token = 2;
-
- oneof auxiliary_auth_info {
-
- FinalizeMfaPhoneResponseInfo phone_auth_info = 3;
- }
- }
- message StartMfaSignInRequest {
-
- string mfa_pending_credential = 2 [(google.api.field_behavior) = REQUIRED];
-
- string mfa_enrollment_id = 3 [(google.api.field_behavior) = REQUIRED];
-
- oneof sign_in_info {
-
- StartMfaPhoneRequestInfo phone_sign_in_info = 4;
- }
-
-
- string tenant_id = 5;
- }
- message StartMfaSignInResponse {
-
- oneof response_info {
-
-
-
-
- StartMfaPhoneResponseInfo phone_response_info = 1;
- }
- }
|