REST Resource: projects.locations.oauthClients Stay organized with collections Save and categorize content based on your preferences.
Resource: OauthClient
Represents anOauthClient. Used to access Google Cloud resources on behalf of a Workforce Identity Federation user by using OAuth 2.0 Protocol to obtain an access token from Google Cloud.
| JSON representation |
|---|
{"name":string,"state":enum ( |
| Fields | |
|---|---|
name |
Immutable. Identifier. The resource name of the Format: |
state |
Output only. The state of the |
disabled |
Optional. Whether the |
clientId |
Output only. The system-generated |
displayName |
Optional. A user-specified display name of the Cannot exceed 32 characters. |
description |
Optional. A user-specified description of the Cannot exceed 256 characters. |
clientType |
Immutable. The type of |
allowedGrantTypes[] |
Required. The list of OAuth grant types is allowed for the |
allowedScopes[] |
Required. The list of scopes that the The following scopes are supported:
|
allowedRedirectUris[] |
Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. |
expireTime |
Output only. Time after which the Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
State
The current state of theOauthClient.
| Enums | |
|---|---|
STATE_UNSPECIFIED | Default value. This value is unused. |
ACTIVE | TheOauthClient is active. |
DELETED | TheOauthClient is soft-deleted. Soft-deletedOauthClient is permanently deleted after approximately 30 days unless restored viaoauthClients.undelete. |
ClientType
The type ofOauthClient.
| Enums | |
|---|---|
CLIENT_TYPE_UNSPECIFIED | Should not be used. |
PUBLIC_CLIENT | Public client has no secret. |
CONFIDENTIAL_CLIENT | Private client. |
GrantType
The OAuth grant type.
| Enums | |
|---|---|
GRANT_TYPE_UNSPECIFIED | Should not be used. |
AUTHORIZATION_CODE_GRANT | Authorization code grant. |
REFRESH_TOKEN_GRANT | Refresh token grant. |
Methods | |
|---|---|
| Creates a newOauthClient. |
| Deletes anOauthClient. |
| Gets an individualOauthClient. |
| Lists all non-deletedOauthClients in a project. |
| Updates an existingOauthClient. |
| Undeletes anOauthClient, as long as it was deleted fewer than 30 days ago. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-24 UTC.