Creates an app integration authentication
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
The app integration id.
The code of the app integration.
The name of the app integration.
The project Id of the app integration.
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.
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.
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.
The scope of the app integration.
The authentication endpoint of the app integration.
The token endpoint of the app integration.
The icon URL of the app integration.
The tags of the app integration.
The description of the app integration.
Flag to indicate if the authentication integration is the default. Default is false.
POST /api/v1/app-integrations/authentication 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?