| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="identitytoolkit_v2.html">Identity Toolkit API</a> . <a href="identitytoolkit_v2.accounts.html">accounts</a> . <a href="identitytoolkit_v2.accounts.mfaSignIn.html">mfaSignIn</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#finalize">finalize(body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Verifies the MFA challenge and performs sign-in</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#start">start(body=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Sends the MFA challenge</p> |
| 86 |
<h3>Method Details</h3> |
| 87 |
<div class="method"> |
| 88 |
<code class="details" id="close">close()</code> |
| 89 |
<pre>Close httplib2 connections.</pre> |
| 90 |
</div> |
| 91 |
|
| 92 |
<div class="method"> |
| 93 |
<code class="details" id="finalize">finalize(body=None, x__xgafv=None)</code> |
| 94 |
<pre>Verifies the MFA challenge and performs sign-in |
| 95 |
|
| 96 |
Args: |
| 97 |
body: object, The request body. |
| 98 |
The object takes the form of: |
| 99 |
|
| 100 |
{ # Finalizes sign-in by verifying MFA challenge. |
| 101 |
"mfaEnrollmentId": "A String", # The MFA enrollment ID from the user's list of current MFA enrollments. |
| 102 |
"mfaPendingCredential": "A String", # Required. Pending credential from first factor sign-in. |
| 103 |
"phoneVerificationInfo": { # Phone Verification info for a FinalizeMfa request. # Proof of completion of the SMS based MFA challenge. |
| 104 |
"androidVerificationProof": "A String", # Android only. Uses for "instant" phone number verification though GmsCore. |
| 105 |
"code": "A String", # User-entered verification code. |
| 106 |
"phoneNumber": "A String", # Required if Android verification proof is presented. |
| 107 |
"sessionInfo": "A String", # An opaque string that represents the enrollment session. |
| 108 |
}, |
| 109 |
"tenantId": "A String", # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project. |
| 110 |
"totpVerificationInfo": { # TOTP verification info for FinalizeMfaSignInRequest. # Proof of completion of the TOTP based MFA challenge. |
| 111 |
"verificationCode": "A String", # User-entered verification code. |
| 112 |
}, |
| 113 |
} |
| 114 |
|
| 115 |
x__xgafv: string, V1 error format. |
| 116 |
Allowed values |
| 117 |
1 - v1 error format |
| 118 |
2 - v2 error format |
| 119 |
|
| 120 |
Returns: |
| 121 |
An object of the form: |
| 122 |
|
| 123 |
{ # FinalizeMfaSignIn response. |
| 124 |
"idToken": "A String", # ID token for the authenticated user. |
| 125 |
"phoneAuthInfo": { # Phone Verification info for a FinalizeMfa response. # Extra phone auth info, including android verification proof. |
| 126 |
"androidVerificationProof": "A String", # Android only. Long-lived replacement for valid code tied to android device. |
| 127 |
"androidVerificationProofExpireTime": "A String", # Android only. Expiration time of verification proof in seconds. |
| 128 |
"phoneNumber": "A String", # For Android verification proof. |
| 129 |
}, |
| 130 |
"refreshToken": "A String", # Refresh token for the authenticated user. |
| 131 |
}</pre> |
| 132 |
</div> |
| 133 |
|
| 134 |
<div class="method"> |
| 135 |
<code class="details" id="start">start(body=None, x__xgafv=None)</code> |
| 136 |
<pre>Sends the MFA challenge |
| 137 |
|
| 138 |
Args: |
| 139 |
body: object, The request body. |
| 140 |
The object takes the form of: |
| 141 |
|
| 142 |
{ # Starts multi-factor sign-in by sending the multi-factor auth challenge. |
| 143 |
"mfaEnrollmentId": "A String", # Required. MFA enrollment id from the user's list of current MFA enrollments. |
| 144 |
"mfaPendingCredential": "A String", # Required. Pending credential from first factor sign-in. |
| 145 |
"phoneSignInInfo": { # App Verification info for a StartMfa request. # Verification info to authorize sending an SMS for phone verification. |
| 146 |
"autoRetrievalInfo": { # The information required to auto-retrieve an SMS. # Android only. Used by Google Play Services to identify the app for auto-retrieval. |
| 147 |
"appSignatureHash": "A String", # The Android app's signature hash for Google Play Service's SMS Retriever API. |
| 148 |
}, |
| 149 |
"captchaResponse": "A String", # The reCAPTCHA Enterprise token provided by the reCAPTCHA client-side integration. Required when reCAPTCHA enterprise is enabled. |
| 150 |
"clientType": "A String", # The client type, web, android or ios. Required when reCAPTCHA Enterprise is enabled. |
| 151 |
"iosReceipt": "A String", # iOS only. Receipt of successful app token validation with APNS. |
| 152 |
"iosSecret": "A String", # iOS only. Secret delivered to iOS app via APNS. |
| 153 |
"phoneNumber": "A String", # Required for enrollment. Phone number to be enrolled as MFA. |
| 154 |
"playIntegrityToken": "A String", # Android only. Used to assert application identity in place of a recaptcha token (or safety net token). A Play Integrity Token can be generated via the [PlayIntegrity API] (https://developer.android.com/google/play/integrity) with applying SHA256 to the `phone_number` field as the nonce. |
| 155 |
"recaptchaToken": "A String", # Web only. Recaptcha solution. |
| 156 |
"recaptchaVersion": "A String", # The reCAPTCHA version of the reCAPTCHA token in the captcha_response. Required when reCAPTCHA Enterprise is enabled. |
| 157 |
"safetyNetToken": "A String", # Android only. Used to assert application identity in place of a recaptcha token. A SafetyNet Token can be generated via the [SafetyNet Android Attestation API](https://developer.android.com/training/safetynet/attestation.html), with the Base64 encoding of the `phone_number` field as the nonce. |
| 158 |
}, |
| 159 |
"tenantId": "A String", # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project. |
| 160 |
} |
| 161 |
|
| 162 |
x__xgafv: string, V1 error format. |
| 163 |
Allowed values |
| 164 |
1 - v1 error format |
| 165 |
2 - v2 error format |
| 166 |
|
| 167 |
Returns: |
| 168 |
An object of the form: |
| 169 |
|
| 170 |
{ # StartMfaSignIn response. |
| 171 |
"phoneResponseInfo": { # Phone Verification info for a StartMfa response. # MultiFactor sign-in session information specific to SMS-type second factors. Along with the one-time code retrieved from the sent SMS, the contents of this session information should be passed to FinalizeMfaSignIn to complete the sign in. |
| 172 |
"sessionInfo": "A String", # An opaque string that represents the enrollment session. |
| 173 |
}, |
| 174 |
}</pre> |
| 175 |
</div> |
| 176 |
|
| 177 |
</body></html> |