- Resource: AuthConfig
- Methods
Resource: AuthConfig
The AuthConfig resource use to hold channels and connection config data.
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "certificateId": string, "credentialType": enum ( |
| Fields | |
|---|---|
name |
Resource name of the auth config. For more information, see Manage authentication profiles.
. |
displayName |
Required. The name of the auth config. |
description |
Optional. A description of the auth config. |
certificateId |
Certificate id for client certificate |
credentialType |
Required. Credential type of the encrypted credential. |
creatorEmail |
The creator's email address. Generated based on the End User Credentials/LOAS role of the user making the call. |
createTime |
Output only. The timestamp when the auth config is created. 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: |
lastModifierEmail |
The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. |
updateTime |
Output only. The timestamp when the auth config is modified. 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: |
visibility |
Optional. The visibility of the auth config. |
state |
Output only. The status of the auth config. |
reason |
Output only. The reason / details of the current status. |
expiryNotificationDuration[] |
Optional. User can define the time to receive notification after which the auth config becomes invalid. Support up to 30 days. Support granularity in hours. A duration in seconds with up to nine fractional digits, ending with ' |
validTime |
Optional. The time until the auth config is valid. Empty or max value is considered the auth config won't expire. 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: |
overrideValidTime |
Optional. User provided expiry time to override. For the example of Salesforce, username/password credentials can be valid for 6 months depending on the instance settings. 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: |
Union field
|
|
encryptedCredential |
Auth credential encrypted by Cloud KMS. Can be decrypted as Credential with proper KMS key. A base64-encoded string. |
decryptedCredential |
Raw auth credentials. |
Credential
Defines parameters for a single, canonical credential.
| JSON representation |
|---|
{ "credentialType": enum ( |
| Fields | |
|---|---|
credentialType |
Credential type associated with auth config. |
Union field credential_value. According to the credential_type, the credential value can be specified in one of the following proto. credential_value can be only one of the following: |
|
usernameAndPassword |
Username and password credential |
oauth2AuthorizationCode |
The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 authorization code credential |
oauth2ClientCredentials |
OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials |
oauth2ResourceOwnerCredentials |
OAuth2 resource owner credentials |
jwt |
JWT credential |
authToken |
Auth token credential |
serviceAccountCredentials |
Service account credential |
oidcToken |
Google OIDC ID Token |
CredentialType
Each type only applies to a certain number of services. For example, types with OAuth prefix only works for connecting REST endpoints.
| Enums | |
|---|---|
CREDENTIAL_TYPE_UNSPECIFIED |
Unspecified credential type |
USERNAME_AND_PASSWORD |
Regular username/password pair. |
API_KEY |
API key. |
OAUTH2_AUTHORIZATION_CODE |
OAuth 2.0 Authorization Code Grant type. |
OAUTH2_IMPLICIT |
OAuth 2.0 Implicit Grant type. |
OAUTH2_CLIENT_CREDENTIALS |
OAuth 2.0 Client Credentials Grant type. |
OAUTH2_RESOURCE_OWNER_CREDENTIALS |
OAuth 2.0 Resource owner Credentials Grant type. |
JWT |
JWT Token. |
AUTH_TOKEN |
Auth Token, e.g. bearer token. |
SERVICE_ACCOUNT |
Service Account which can be used to generate token for authentication. |
CLIENT_CERTIFICATE_ONLY |
Client Certificate only. |
OIDC_TOKEN |
Google OIDC ID Token |
UsernameAndPassword
Username and password pair.
| JSON representation |
|---|
{ "username": string, "password": string } |
| Fields | |
|---|---|
username |
Username to be used |
password |
Password to be used |
OAuth2AuthorizationCode
The OAuth type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens.
| JSON representation |
|---|
{ "clientId": string, "clientSecret": string, "scope": string, "authEndpoint": string, "authParams": { object ( |
| Fields | |
|---|---|
clientId |
The client's id. |
clientSecret |
The client's secret. |
scope |
A space-delimited list of requested scope permissions. |
authEndpoint |
The auth url endpoint to send the auth code request to. |
authParams |
The auth parameters sent along with the auth code request. |
tokenEndpoint |
The token url endpoint to send the token request to. |
tokenParams |
The token parameters sent along with the token request. |
accessToken |
The access token received from the token endpoint. |
authCode |
The Auth Code that is used to initially retrieve the access token. |
requestType |
Represent how to pass parameters to fetch access token |
applyReauthPolicy |
Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one. |
ParameterMap
A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified.
| JSON representation |
|---|
{ "entries": [ { object ( |
| Fields | |
|---|---|
entries[] |
A list of parameter map entries. |
keyType |
Option to specify key type for all entries of the map. If provided then field types for all entries must conform to this. |
valueType |
Option to specify value type for all entries of the map. If provided then field types for all entries must conform to this. |
ParameterMapEntry
Entry is a pair of key and value.
| JSON representation |
|---|
{ "key": { object ( |
| Fields | |
|---|---|
key |
Key of the map entry. |
value |
Value of the map entry. |
ParameterMapField
Field represents either the key or value in an entry.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
referenceKey |
Referencing one of the Integration variables. |