Skip to content

Commit

Permalink
Merge pull request auth0-extensions#66 from Deborah-Digges/ESD-8349
Browse files Browse the repository at this point in the history
ESD-8349: Add user-agent to headers in auth webhook extension
  • Loading branch information
xer0x authored Aug 26, 2020
2 parents 301031b + 17b309d commit 6e73d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions server/lib/senders/auth-webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = () => {
const batchMode = config('SEND_AS_BATCH') === true || config('SEND_AS_BATCH') === 'true';
const concurrentCalls = parseInt(config('WEBHOOK_CONCURRENT_CALLS'), 10) || 5;
const headers = config('AUTHORIZATION') ? { Authorization: config('AUTHORIZATION') } : {};
headers['User-Agent'] = 'auth0-extensions auth webhook';

const sendRequest = (data, callback) =>
Request({
Expand Down
4 changes: 2 additions & 2 deletions webtask-templates/auth-webhooks.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"title": "Auth0 Authentication API webhooks",
"name": "auth0-authentication-api-webhooks",
"version": "2.3.3",
"preVersion": "2.3.2",
"version": "2.3.4",
"preVersion": "2.3.3",
"description": "Allows you to define webhooks for Auth0's Authentication API. It will go through the audit logs and call a webhook for specific events.",
"category": "webhook",
"docsUrl": "https://auth0.com/docs/extensions/authentication-api-webhooks",
Expand Down

0 comments on commit 6e73d72

Please sign in to comment.