Updates an app integration authentication

Updates the app integration authentication by the given id.

put
Path parameters
idstringRequired

The id of the app integration authentication.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body
appIntegrationIdstring · min: 1Required

The app integration id.

codestring · min: 1Required

The code of the app integration.

namestring · min: 1Required

The name of the app integration.

projectIdstring · min: 1Required

The project Id of the app integration.

clientIdstring · min: 1Required

The client email of the app integration. This value is used for OAuth2 methods. For example, for Google OAuth2, this value is the email of the service account.

clientSecretstring · min: 1Required

The client secret of the app integration. This value is used for OAuth2 methods. For example, for Google OAuth2, this value is the private key of the service account.

redirectURIstring · min: 1Required

The redirect URI of the app integration. After the user logs in, the user is redirected to this URI. This value is must be mapping with the application configuration on the OAuth2 provider.

scopestring · min: 1Required

The scope of the app integration.

authEndpointstring · uri | nullableOptional

The authentication endpoint of the app integration.

tokenEndpointstring · uri | nullableOptional

The token endpoint of the app integration.

iconURLstring · uri | nullableOptional

The icon URL of the app integration.

tagsstring | nullableOptional

The tags of the app integration.

descriptionstring | nullableOptional

The description of the app integration.

statusstring · enumOptionalPossible values:
isDefaultbooleanOptional

Flag to indicate if the authentication integration is the default. Default is false.

Responses
200
The request was successful.
application/json
put
PUT /api/v1/app-integrations/authentication/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 603

{
  "appIntegrationId": "sApKpllz4sAplsmzha",
  "code": "GOOGLE_OAUTH2",
  "name": "Google OAuth2 Integration",
  "projectId": "my-google-project-123",
  "clientId": "1234567890-abc.apps.googleusercontent.com",
  "clientSecret": "GOCSPX-EXAMPLESECRET",
  "redirectURI": "https://subdomain.com/auth/callback",
  "scope": "openid email profile",
  "authEndpoint": "https://accounts.google.com/o/oauth2/auth",
  "tokenEndpoint": "https://oauth2.googleapis.com/token",
  "iconURL": "https://subdomain.com/assets/google-icon.png",
  "tags": "#google #oauth2",
  "description": "Integration for Google OAuth2 authentication.",
  "status": "Active",
  "isDefault": true
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "isDefault": false,
    "status": "Active",
    "description": "description",
    "tags": "tags",
    "iconURL": "iconUrl",
    "tokenEndpoint": "tokenEndpoint",
    "id": "sApKpllz4sAplsmzha",
    "authEndpoint": "authEndpoint",
    "redirectURI": "redirectUri",
    "clientSecret": "clientSecret",
    "clientId": "clientId",
    "projectId": "projectId",
    "name": "name",
    "code": "code",
    "scope": "scope"
  },
  "errors": []
}

Last updated

Was this helpful?