Debian Codegraph @

docs/dyn/identitytoolkit_v1.projects.html

raw
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_v1.html">Identity Toolkit API</a> . <a href="identitytoolkit_v1.projects.html">projects</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="identitytoolkit_v1.projects.accounts.html">accounts()</a></code>
79 </p>
80 <p class="firstline">Returns the accounts Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="identitytoolkit_v1.projects.tenants.html">tenants()</a></code>
84 </p>
85 <p class="firstline">Returns the tenants Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#createSessionCookie">createSessionCookie(targetProjectId, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates a session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user's login state.</p>
93 <p class="toc_element">
94 <code><a href="#queryAccounts">queryAccounts(targetProjectId, body=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Looks up user accounts within a project or a tenant based on conditions in the request.</p>
96 <h3>Method Details</h3>
97 <div class="method">
98 <code class="details" id="close">close()</code>
99 <pre>Close httplib2 connections.</pre>
100 </div>
101
102 <div class="method">
103 <code class="details" id="createSessionCookie">createSessionCookie(targetProjectId, body=None, x__xgafv=None)</code>
104 <pre>Creates a session cookie for the given Identity Platform ID token. The session cookie is used by the client to preserve the user&#x27;s login state.
105
106 Args:
107 targetProjectId: string, The ID of the project that the account belongs to. (required)
108 body: object, The request body.
109 The object takes the form of:
110
111 { # Request message for CreateSessionCookie.
112 &quot;idToken&quot;: &quot;A String&quot;, # Required. A valid Identity Platform ID token.
113 &quot;tenantId&quot;: &quot;A String&quot;, # The tenant ID of the Identity Platform tenant the account belongs to.
114 &quot;validDuration&quot;: &quot;A String&quot;, # The number of seconds until the session cookie expires. Specify a duration in seconds, between five minutes and fourteen days, inclusively.
115 }
116
117 x__xgafv: string, V1 error format.
118 Allowed values
119 1 - v1 error format
120 2 - v2 error format
121
122 Returns:
123 An object of the form:
124
125 { # Response message for CreateSessionCookie.
126 &quot;sessionCookie&quot;: &quot;A String&quot;, # The session cookie that has been created from the Identity Platform ID token specified in the request. It is in the form of a JSON Web Token (JWT). Always present.
127 }</pre>
128 </div>
129
130 <div class="method">
131 <code class="details" id="queryAccounts">queryAccounts(targetProjectId, body=None, x__xgafv=None)</code>
132 <pre>Looks up user accounts within a project or a tenant based on conditions in the request.
133
134 Args:
135 targetProjectId: string, The ID of the project to which the result is scoped. (required)
136 body: object, The request body.
137 The object takes the form of:
138
139 { # Request message for QueryUserInfo.
140 &quot;expression&quot;: [
141 { # Query conditions used to filter results.
142 &quot;email&quot;: &quot;A String&quot;, # A case insensitive string that the account&#x27;s email should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.
143 &quot;phoneNumber&quot;: &quot;A String&quot;, # A string that the account&#x27;s phone number should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.
144 &quot;userId&quot;: &quot;A String&quot;, # A string that the account&#x27;s local ID should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression If more than one is specified, only the first (in that order) will be applied.
145 },
146 ],
147 &quot;limit&quot;: &quot;A String&quot;, # The maximum number of accounts to return with an upper limit of __500__. Defaults to _500_. Only valid when `return_user_info` is set to `true`.
148 &quot;offset&quot;: &quot;A String&quot;, # The number of accounts to skip from the beginning of matching records. Only valid when `return_user_info` is set to `true`.
149 &quot;order&quot;: &quot;A String&quot;,
150 &quot;returnUserInfo&quot;: True or False, # If `true`, this request will return the accounts matching the query. If `false`, only the __count__ of accounts matching the query will be returned. Defaults to `true`.
151 &quot;sortBy&quot;: &quot;A String&quot;,
152 &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant to which the result is scoped.
153 }
154
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160 Returns:
161 An object of the form:
162
163 { # Response message for QueryUserInfo.
164 &quot;recordsCount&quot;: &quot;A String&quot;, # If `return_user_info` in the request is true, this is the number of returned accounts in this message. Otherwise, this is the total number of accounts matching the query.
165 &quot;userInfo&quot;: [ # If `return_user_info` in the request is true, this is the accounts matching the query.
166 { # An Identity Platform account&#x27;s information.
167 &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
168 &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
169 &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
170 &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
171 &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
172 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
173 &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `[email protected]`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
174 &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
175 &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
176 &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
177 &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
178 &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
179 &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
180 &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
181 &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
182 { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
183 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
184 &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
185 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
186 },
187 &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
188 &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
189 &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
190 &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
191 },
192 &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
193 },
194 ],
195 &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
196 &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
197 &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
198 &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
199 &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
200 { # Information about the user as provided by various Identity Providers.
201 &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
202 &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
203 &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
204 &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
205 &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
206 &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
207 &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
208 &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
209 },
210 ],
211 &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
212 &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
213 &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
214 &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
215 &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
216 &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
217 &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
218 },
219 ],
220 }</pre>
221 </div>
222
223 </body></html>