Skip to content

Commit

Permalink
Update autodesk
Browse files Browse the repository at this point in the history
  • Loading branch information
simov committed Oct 1, 2023
1 parent 01191ae commit 71445d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/oauth.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
"scope_delimiter": " "
},
"autodesk": {
"authorize_url": "https://developer.api.autodesk.com/authentication/v1/authorize",
"access_url": "https://developer.api.autodesk.com/authentication/v1/gettoken",
"authorize_url": "https://developer.api.autodesk.com/authentication/v2/authorize",
"access_url": "https://developer.api.autodesk.com/authentication/v2/token",
"oauth": 2,
"scope_delimiter": " "
},
Expand Down
2 changes: 1 addition & 1 deletion lib/flow/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports.access = ({request:client}) => async ({provider, input, input:{query, bo
client_secret: provider.secret
}
}
if (/ebay|fitbit|homeaway|hootsuite|notion|reddit|trustpilot/.test(provider.name)
if (/autodesk|ebay|fitbit|homeaway|hootsuite|notion|reddit|trustpilot/.test(provider.name)
|| provider.token_endpoint_auth_method === 'client_secret_basic'
) {
delete options.form.client_id
Expand Down
2 changes: 1 addition & 1 deletion test/flow/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('oauth2', () => {
})
}
await Promise.all(
['ebay', 'fitbit', 'homeaway', 'hootsuite', 'notion', 'reddit', 'trustpilot'].map((provider) =>
['autodesk', 'ebay', 'fitbit', 'homeaway', 'hootsuite', 'notion', 'reddit', 'trustpilot'].map((provider) =>
request({
url: client.url(`/connect/${provider}`),
qs: {key: 'key', secret: 'secret'},
Expand Down

0 comments on commit 71445d6

Please sign in to comment.