mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 22:26:15 +00:00
add examples to integration auth docs
This commit is contained in:
@@ -485,14 +485,14 @@ export const INTEGRATION_AUTH = {
|
|||||||
integrationAuthId: "The id of integration authentication object."
|
integrationAuthId: "The id of integration authentication object."
|
||||||
},
|
},
|
||||||
DELETE: {
|
DELETE: {
|
||||||
integration: "The slug of integration to be deleted from authorized.",
|
integration: "The slug of the integration to be unauthorized.",
|
||||||
projectId: "The ID of the project to delete integration authorized."
|
projectId: "The ID of the project to delete the integration auth from."
|
||||||
},
|
},
|
||||||
DELETE_BY_ID: {
|
DELETE_BY_ID: {
|
||||||
integrationAuthId: "The id of integration authentication object to delete."
|
integrationAuthId: "The id of integration authentication object to delete."
|
||||||
},
|
},
|
||||||
CREATE_ACCESS_TOKEN: {
|
CREATE_ACCESS_TOKEN: {
|
||||||
workspaceId: "The ID of the project to create integration auth.",
|
workspaceId: "The ID of the project to create the integration auth for.",
|
||||||
integration: "The slug of integration for the auth object.",
|
integration: "The slug of integration for the auth object.",
|
||||||
accessId: "The unique authorized access id of the external integration provider.",
|
accessId: "The unique authorized access id of the external integration provider.",
|
||||||
accessToken: "The unique authorized access token of the external integration provider.",
|
accessToken: "The unique authorized access token of the external integration provider.",
|
||||||
@@ -501,7 +501,7 @@ export const INTEGRATION_AUTH = {
|
|||||||
refreshToken: "The refresh token for integration authorization."
|
refreshToken: "The refresh token for integration authorization."
|
||||||
},
|
},
|
||||||
LIST_AUTHORIZATION: {
|
LIST_AUTHORIZATION: {
|
||||||
workspaceId: "The ID of the project to list integration auth."
|
workspaceId: "The ID of the project to list integration auths for."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
description: "Create the integration authentication object.",
|
description: "Create the integration authentication object required for syncing secrets.",
|
||||||
security: [
|
security: [
|
||||||
{
|
{
|
||||||
bearerAuth: []
|
bearerAuth: []
|
||||||
|
|||||||
@@ -3,9 +3,11 @@ title: "Create Auth"
|
|||||||
openapi: "POST /api/v1/integration-auth/access-token"
|
openapi: "POST /api/v1/integration-auth/access-token"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Integration Auth Parameters
|
## Integration Authentication Parameters
|
||||||
|
|
||||||
|
The integration authentication endpoint is generic and can be used for all native integrations.
|
||||||
|
For specific integration parameters for a given service, please review the respective documentation below.
|
||||||
|
|
||||||
We have a generic endpoints for creating integration auth objects. These are the parameters required for each integration.
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="AWS Secrets manager">
|
<Tab title="AWS Secrets manager">
|
||||||
<ParamField body="integration" type="string" initialValue="aws-secret-manager" required>
|
<ParamField body="integration" type="string" initialValue="aws-secret-manager" required>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ openapi: "POST /api/v1/integration"
|
|||||||
|
|
||||||
## Integration Parameters
|
## Integration Parameters
|
||||||
|
|
||||||
We have a generic endpoints for creating integration. These are the parameters required for each integration.
|
The integration creation endpoint is generic and can be used for all native integrations.
|
||||||
|
For specific integration parameters for a given service, please review the respective documentation below.
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="AWS Secrets manager">
|
<Tab title="AWS Secrets manager">
|
||||||
@@ -17,16 +18,16 @@ We have a generic endpoints for creating integration. These are the parameters r
|
|||||||
Whether the integration should be active or inactive
|
Whether the integration should be active or inactive
|
||||||
</ParamField>
|
</ParamField>
|
||||||
<ParamField body="app" type="string" required>
|
<ParamField body="app" type="string" required>
|
||||||
The secret name used when saving secret in AWS SSM.
|
The secret name used when saving secret in AWS SSM. Used for naming and can be arbitrary.
|
||||||
</ParamField>
|
</ParamField>
|
||||||
<ParamField body="region" type="string" required>
|
<ParamField body="region" type="string" required>
|
||||||
The AWS region of the SSM.
|
The AWS region of the SSM. Example: `us-east-1`
|
||||||
</ParamField>
|
</ParamField>
|
||||||
<ParamField body="sourceEnvironment" type="string" required>
|
<ParamField body="sourceEnvironment" type="string" required>
|
||||||
The infisical environment for the secrets to be synced.
|
The Infisical environment slug from where secrets will be synced from. Example: `dev`
|
||||||
</ParamField>
|
</ParamField>
|
||||||
<ParamField body="secretPath" type="string" required>
|
<ParamField body="secretPath" type="string" required>
|
||||||
The infisical secret path for the secrets to be synced.
|
The Infisical folder path from where secrets will be synced from. Example: `/some/path`. The root of the environment is `/`.
|
||||||
</ParamField>
|
</ParamField>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="GCP Secrets manager">
|
<Tab title="GCP Secrets manager">
|
||||||
|
|||||||
Reference in New Issue
Block a user