Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.
HTTP request
POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*}/authConfigs
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis webpage details how to create an auth config record, fetch credentials for various auth types, and encrypt and store them using Cloud KMS and Spanner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e HTTP request to create an auth config utilizes gRPC Transcoding syntax, with a specific URL format: \u003ccode\u003ehttps://integrations.googleapis.com/v1/{parent=projects/*/locations/*}/authConfigs\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter in the format "projects/{project}/locations/{location}" and an instance of \u003ccode\u003eAuthConfig\u003c/code\u003e in the request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created instance of \u003ccode\u003eAuthConfig\u003c/code\u003e in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating an auth config record requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003eintegrations.authConfigs.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.authConfigs.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCreates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.\n\n### HTTP request\n\n`POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*}/authConfigs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [AuthConfig](/application-integration/docs/reference/rest/v1/projects.locations.authConfigs#AuthConfig).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AuthConfig](/application-integration/docs/reference/rest/v1/projects.locations.authConfigs#AuthConfig).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `integrations.authConfigs.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]