-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #920 from LoginRadius/staging
Staging2main16jan
- Loading branch information
Showing
9 changed files
with
415 additions
and
3 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
database/apidocs/apis/v2/integrations/webhooks/create-webhook-subscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"name": "Create Webhook Subscription", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook", | ||
"method": "POST", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"postparams": { | ||
"Event": "eventName", | ||
"TargetUrl": "https://example.com/api/webhook", | ||
"Name": "Description of the Event", | ||
"Headers": { | ||
"Custom-Header": "headerValue" | ||
}, | ||
"QueryParams": { | ||
"apikey": "yourApiKey" | ||
}, | ||
"Authentication": { | ||
"AuthType": "Basic", | ||
"BasicAuth": { | ||
"Username": "yourUsername", | ||
"Password": "yourPassword" | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to create a new webhook subscription.", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
], | ||
"Post Params": [ | ||
{ | ||
"name": "TargetUrl", | ||
"is_required": true, | ||
"description": "URL where trigger will send data when it invoke" | ||
}, | ||
{ | ||
"name": "Event", | ||
"is_required": true, | ||
"description": "Allowed events: Login, Register, UpdateProfile, ResetPassword, ChangePassword, EmailVerification, AddEmail, RemoveEmail, BlockAccount, DeleteAccount, SetUsername, AssignRoles, UnassignRoles, SetPassword, LinkAccount, UnlinkAccount, UpdatePhoneId, VerifyPhoneNumber, InvalidateEmailVerification, RemoveRoleContext, CreateCustomObject, UpdateCustomObject, DeleteCustomObject, InvalidatePhoneVerification, RemovePhoneId, ConsentProfileUpdate, SetPIN, ResetPIN, ChangePIN, UpdateUid" | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"Id": "62218e79349528401107cdf4", | ||
"TargetUrl": "https://example.com/api/webhook", | ||
"Event": "login", | ||
"CreatedDate": "2022-03-04T03:58:49.294Z", | ||
"LastModifiedDate": "2024-11-27T06:47:12.933Z", | ||
"SecretName": "", | ||
"IsIntegrationWebhook": false, | ||
"Name": "login With Key in QueryParam", | ||
"Headers": { | ||
"x-test-header": "qa" | ||
}, | ||
"QueryParams": { | ||
"apikey": "859faf40a7c54c209360b45376bf529f" | ||
}, | ||
"Authentication": { | ||
"AuthType": "Basic", | ||
"BasicAuth": { | ||
"Username": "lrqaadmin", | ||
"Password": "" | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
database/apidocs/apis/v2/integrations/webhooks/delete-webhook-subscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "Delete Webhook Subscription", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook/{hookid}", | ||
"method": "DELETE", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"templateparams": { | ||
"hookId": "ID of the webhook subscription" | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to delete webhook subscriptions.", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
], | ||
"Template Params": [ | ||
{ | ||
"name": "hookid", | ||
"is_required": true, | ||
"description": "It is a unique ID of a webhook subscription." | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"isdeleted": true | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
database/apidocs/apis/v2/integrations/webhooks/get-webhook-subscription-details.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"name": "Get Webhook Subscription Details", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook/{hookid}", | ||
"method": "GET", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"templateparams": { | ||
"hookId": "ID of the webhook subscription" | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to get details of a webhook subscription by Id", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
], | ||
"Template Params": [ | ||
{ | ||
"name": "hookid", | ||
"is_required": true, | ||
"description": "It is a unique ID of a webhook subscription." | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"Id": "62218e79349528401107cdf4", | ||
"TargetUrl": "https://example.com/api/webhook", | ||
"Event": "login", | ||
"CreatedDate": "2022-03-04T03:58:49.294Z", | ||
"LastModifiedDate": "2024-11-27T06:47:12.933Z", | ||
"SecretName": "", | ||
"Name": "", | ||
"IsIntegrationWebhook": false, | ||
"Headers": { | ||
"x-testing": "xxxyyyy" | ||
}, | ||
"QueryParams": { | ||
"Test": "nnn" | ||
}, | ||
"Authentication": null | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
database/apidocs/apis/v2/integrations/webhooks/list-all-events.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "List All Events", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook/events", | ||
"method": "GET", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to get all webhook events.", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"Data": [ | ||
"Login", | ||
"Register", | ||
"UpdateProfile", | ||
"ResetPassword", | ||
"ChangePassword", | ||
"EmailVerification", | ||
"AddEmail", | ||
"RemoveEmail", | ||
"BlockAccount", | ||
"DeleteAccount", | ||
"SetUsername", | ||
"CreateTraditionalAccount", | ||
"AssignRoles", | ||
"UnassignRoles", | ||
"SetPassword", | ||
"LinkAccount", | ||
"UnlinkAccount", | ||
"UpdatePhoneId", | ||
"VerifyPhoneNumber", | ||
"InvalidateEmailVerification", | ||
"RemoveRoleContext", | ||
"CreateCustomObject", | ||
"UpdateCustomObject", | ||
"DeleteCustomObject", | ||
"InvalidatePhoneVerification", | ||
"RemovePhoneId", | ||
"ConsentProfileUpdate", | ||
"SetPIN", | ||
"ResetPIN", | ||
"ChangePIN", | ||
"UpdateUid" | ||
] | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
database/apidocs/apis/v2/integrations/webhooks/list-all-webhooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "List All Webhooks", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook", | ||
"method": "GET", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to list all webhook subscriptions.", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"Data": [ | ||
{ | ||
"Id": "62218e79349528401107cdf4", | ||
"TargetUrl": "https://domcheck.page2-examplurl.co.uk/page/string", | ||
"Event": "login", | ||
"CreatedDate": "2022-03-04T03:58:49.294Z", | ||
"LastModifiedDate": "2024-11-27T06:47:12.933Z", | ||
"SecretName": "", | ||
"Name": "", | ||
"IsIntegrationWebhook": false, | ||
"Headers": { | ||
"x-testing": "xxxyyyy" | ||
}, | ||
"QueryParams": { | ||
"Test": "nnn" | ||
}, | ||
"Authentication": null | ||
}, | ||
{ | ||
"Id": "6221d99b098ba46a356fc92e", | ||
"TargetUrl": "https://domcheck.page2-examplurl.co.uk/page/string", | ||
"Event": "login", | ||
"CreatedDate": "2022-03-04T09:19:23.072Z", | ||
"LastModifiedDate": "2022-03-04T09:19:23.072Z", | ||
"SecretName": "", | ||
"Name": "", | ||
"IsIntegrationWebhook": false, | ||
"Headers": null, | ||
"QueryParams": null, | ||
"Authentication": null | ||
} | ||
] | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
database/apidocs/apis/v2/integrations/webhooks/update-webhook-subscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "Update Webhook Subscription", | ||
"domain": "https://api.loginradius.com", | ||
"path": "/v2/manage/webhook/{hookid}", | ||
"method": "PUT", | ||
"getparams": { | ||
"apikey*": "@apikey@", | ||
"apisecret*": "@secret@" | ||
}, | ||
"templateparams": { | ||
"hookId": "ID of the webhook subscription" | ||
}, | ||
"postparams": { | ||
"Headers": { | ||
"x-test-header": "qa" | ||
}, | ||
"QueryParams": { | ||
"apikey": "859faf40a7c54c209360b45376bf529f" | ||
}, | ||
"Authentication": { | ||
"AuthType": "Basic", | ||
"BasicAuth": { | ||
"Username": "lrqaadmin", | ||
"Password": "ZBz6JcnZadxc2gB7sf5vby87zBIu6q" | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"content-Type": "application/json" | ||
}, | ||
"response": "json", | ||
"description": "This API is used to update webhook subscriptions.", | ||
"parameters": { | ||
"Get Params": [ | ||
{ | ||
"name": "apikey", | ||
"is_required": true, | ||
"description": "LoginRadius API Key" | ||
}, | ||
{ | ||
"name": "apisecret", | ||
"is_required": true, | ||
"description": "LoginRadius API Secret" | ||
} | ||
], | ||
"Template Params": [ | ||
{ | ||
"name": "hookid", | ||
"is_required": true, | ||
"description": "It is a unique ID of a webhook subscription." | ||
} | ||
] | ||
}, | ||
"outputFormat": { | ||
"Id": "62218e79349528401107cdf4", | ||
"TargetUrl": "2", | ||
"Event": "login", | ||
"CreatedDate": "2022-03-04T03:58:49.294Z", | ||
"LastModifiedDate": "2024-11-27T06:47:12.933Z", | ||
"SecretName": "", | ||
"IsIntegrationWebhook": false, | ||
"Name": "login With Key in QueryParam", | ||
"Headers": { | ||
"x-test-header": "qa" | ||
}, | ||
"QueryParams": { | ||
"apikey": "859faf40a7c54c209360b45376bf529f" | ||
}, | ||
"Authentication": { | ||
"AuthType": "Basic", | ||
"BasicAuth": { | ||
"Username": "lrqaadmin", | ||
"Password": "" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.