- Resource: WorkforcePoolProvider
- State
- Saml
- Oidc
- ClientSecret
- Value
- WebSsoConfig
- ResponseType
- AssertionClaimsBehavior
- ExtraAttributesOAuth2Client
- AttributesType
- QueryParameters
- Methods
Resource: WorkforcePoolProvider
A configuration for an external identity provider.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the provider. Format: |
display |
Optional. A user-specified display name for the provider. Cannot exceed 32 characters. |
description |
Optional. A user-specified description of the provider. Cannot exceed 256 characters. |
state |
Output only. The state of the provider. |
disabled |
Optional. Disables the workforce pool provider. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access. |
attribute |
Required. Maps attributes from the authentication credentials issued by an external identity provider to Google Cloud attributes, such as Each key must be a string specifying the Google Cloud IAM attribute to map to. The following keys are supported:
You can also provide custom attributes by specifying You can reference these attributes in IAM policies to define fine-grained access for a workforce pool to Google Cloud resources. For example:
Each value must be a Common Expression Language function that maps an identity provider credential to the normalized attribute specified by the corresponding map key. You can use the The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 4KB. For OIDC providers, you must supply a custom mapping that includes the
An object containing a list of |
attribute |
Optional. A Common Expression Language expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted. The expression must output a boolean representing whether to allow the federation. The following keywords may be referenced in the expressions:
The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credentials will be accepted. The following example shows how to only allow credentials with a mapped
|
expire |
Output only. Time after which the workload pool provider will be permanently purged and cannot be recovered. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
extra |
Optional. The configuration for OAuth 2.0 client used to get the additional user attributes. This should be used when users can't get the desired claims in authentication credentials. Currently this configuration is only supported with OIDC protocol. |
Union field
|
|
saml |
A SAML identity provider configuration. |
oidc |
An OpenId Connect 1.0 identity provider configuration. |
State
The current state of the provider.
Enums | |
---|---|
STATE_UNSPECIFIED |
State unspecified. |
ACTIVE |
The provider is active and may be used to validate authentication credentials. |
DELETED |
The provider is soft-deleted. Soft-deleted providers are permanently deleted after approximately 30 days. You can restore a soft-deleted provider using providers.undelete . |
Saml
Represents a SAML identity provider.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
idp |
Required. SAML Identity provider configuration metadata xml doc. The xml document should comply with SAML 2.0 specification. The max size of the acceptable xml document will be bounded to 128k characters. The metadata xml document should satisfy the following constraints: 1) Must contain an Identity Provider Entity ID. 2) Must contain at least one non-expired signing key certificate. 3) For each signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than 20 years in the future. 4) Up to 3 IdP signing keys are allowed in the metadata xml. When updating the provider's metadata xml, at least one non-expired signing key must overlap with the existing metadata. This requirement is skipped if there are no non-expired signing keys present in the existing metadata. |
Oidc
Represents an OpenId Connect 1.0 identity provider.
JSON representation |
---|
{ "issuerUri": string, "clientId": string, "clientSecret": { object ( |
Fields | |
---|---|
issuer |
Required. The OIDC issuer URI. Must be a valid URI using the |
client |
Required. The client ID. Must match the audience claim of the JWT issued by the identity provider. |
client |
Optional. The optional client secret. Required to enable Authorization Code flow for web sign-in. |
web |
Required. Configuration for web single sign-on for the OIDC provider. Here, web sign-in refers to console sign-in and gcloud sign-in through the browser. |
jwks |
Optional. OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the |
ClientSecret
Representation of a client secret configured for the OIDC provider.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
value |
The value of the client secret. |
Value
Representation of the value of the client secret.
JSON representation |
---|
{ "plainText": string, "thumbprint": string } |
Fields | |
---|---|
plain |
Optional. Input only. The plain text of the client secret value. For security reasons, this field is only used for input and will never be populated in any response. |
thumbprint |
Output only. A thumbprint to represent the current client secret value. |
WebSsoConfig
Configuration for web single sign-on for the OIDC provider.
JSON representation |
---|
{ "responseType": enum ( |
Fields | |
---|---|
response |
Required. The Response Type to request for in the OIDC Authorization Request for web sign-in. The |
assertion |
Required. The behavior for how OIDC Claims are included in the |
additional |
Optional. Additional scopes to request for in the OIDC authentication request on top of scopes requested by default. By default, the Each additional scope may be at most 256 characters. A maximum of 10 additional scopes may be configured. |
ResponseType
Possible Response Types to request for in the OIDC Authorization Request for web sign-in. This determines the OIDC Authentication Flow. See https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a mapping of Response Type to OIDC Authentication Flow.
Enums | |
---|---|
RESPONSE_TYPE_UNSPECIFIED |
No Response Type specified. |
CODE |
The responseType=code selection uses the Authorization Code Flow for web sign-in. Requires a configured client secret. |
ID_TOKEN |
The responseType=id_token selection uses the Implicit Flow for web sign-in. |
AssertionClaimsBehavior
Possible behaviors for how OIDC Claims are included in the assertion
object used for attribute mapping and attribute condition.
Enums | |
---|---|
ASSERTION_CLAIMS_BEHAVIOR_UNSPECIFIED |
No assertion claims behavior specified. |
MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS |
Merge the UserInfo Endpoint Claims with ID Token Claims, preferring UserInfo Claim Values for the same Claim Name. This option is available only for the Authorization Code Flow. |
ONLY_ID_TOKEN_CLAIMS |
Only include ID Token Claims. |
ExtraAttributesOAuth2Client
Represents the OAuth 2.0 client credential configuration for retrieving additional user attributes that are not present in the initial authentication credentials from the identity provider, e.g. groups. See https://datatracker.ietf.org/doc/html/rfc6749#section-4.4 for more details on client credentials grant flow.
JSON representation |
---|
{ "issuerUri": string, "clientId": string, "clientSecret": { object ( |
Fields | |
---|---|
issuer |
Required. The OIDC identity provider's issuer URI. Must be a valid URI using the |
client |
Required. The OAuth 2.0 client ID for retrieving extra attributes from the identity provider. Required to get the Access Token using client credentials grant flow. |
client |
Required. The OAuth 2.0 client secret for retrieving extra attributes from the identity provider. Required to get the Access Token using client credentials grant flow. |
attributes |
Required. Represents the IdP and type of claims that should be fetched. |
query |
Optional. Represents the parameters to control which claims are fetched from an IdP. |
AttributesType
Represents the IdP and type of claims that should be fetched.
Enums | |
---|---|
ATTRIBUTES_TYPE_UNSPECIFIED |
No AttributesType specified. |
AZURE_AD_GROUPS_MAIL |
Used to get the user's group claims from the Microsoft Entra ID identity provider using configuration provided in ExtraAttributesOAuth2Client and mail property of the microsoft.graph.group object is used for claim mapping. See https://learn.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0#properties for more details on microsoft.graph.group properties. The attributes obtained from idntity provider are mapped to assertion.groups . |
QueryParameters
Represents the parameters to control which claims are fetched from an IdP.
JSON representation |
---|
{ "filter": string } |
Fields | |
---|---|
filter |
Optional. The filter used to request specific records from IdP. In case of attributes type as AZURE_AD_GROUPS_MAIL, it represents the filter used to request specific groups for users from IdP. By default, all of the groups associated with the user are fetched. The groups should be mail enabled and security enabled. See https://learn.microsoft.com/en-us/graph/search-query-parameter for more details. |
Methods |
|
---|---|
|
Creates a new WorkforcePoolProvider in a WorkforcePool . |
|
Deletes a WorkforcePoolProvider . |
|
Gets an individual WorkforcePoolProvider . |
|
Lists all non-deleted WorkforcePoolProvider s in a WorkforcePool . |
|
Updates an existing WorkforcePoolProvider . |
|
Undeletes a WorkforcePoolProvider , as long as it was deleted fewer than 30 days ago. |