Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: HighLevel oauth2 api credentials #9542

Merged

Conversation

michael-radency
Copy link
Contributor

Summary

support for HighLevel API v2 credentials

Review / Merge checklist

https://linear.app/n8n/issue/NODE-783/enterprise-request-support-for-highlevel-api-v2

@michael-radency michael-radency added the n8n team Authored by the n8n team label May 29, 2024
@@ -25,7 +25,12 @@ export class OAuth2CredentialController extends AbstractOAuthController {
// At some point in the past we saved hidden scopes to credentials (but shouldn't)
// Delete scope before applying defaults to make sure new scopes are present on reconnect
// Generic Oauth2 API is an exception because it needs to save the scope
const genericOAuth2 = ['oAuth2Api', 'googleOAuth2Api', 'microsoftOAuth2Api'];
const genericOAuth2 = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this change necessary? is it to prevent the delete decryptedDataOriginal.scope call?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have bug with Scopes property in OAuth2 as it not possible to set value there, scopes are always empty in authorization url, I will create ticket for that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in that case we should leave a comment in the code linking to the ticket, to make sure that anyone looking at this code isn't confused about why one particular service's oauth credential type is being included in the generic type list.

…enterprise-request-support-for-highlevel-api-v2
…enterprise-request-support-for-highlevel-api-v2
@michael-radency michael-radency requested a review from Joffcom May 30, 2024 13:04
@elsmr elsmr changed the title feat: HigthLevel oauth2 api credentials feat: HighLevel oauth2 api credentials May 30, 2024
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented May 30, 2024

Passing run #5184 ↗︎

0 361 0 0 Flakiness 0

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: 6316b6429b
Status: Passed Duration: 04:47 💡
Started: May 30, 2024 2:09 PM Ended: May 30, 2024 2:14 PM

Review all test suite changes for PR #9542 ↗︎

…enterprise-request-support-for-highlevel-api-v2
Copy link
Contributor

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit be58905 into master May 30, 2024
28 checks passed
@elsmr elsmr deleted the node-783-enterprise-request-support-for-highlevel-api-v2 branch May 30, 2024 14:21
@github-actions github-actions bot mentioned this pull request May 30, 2024
@janober
Copy link
Member

janober commented May 30, 2024

Got released with n8n@1.44.0

MiloradFilipovic added a commit that referenced this pull request May 31, 2024
* master:
  fix(editor): Fix ts errors across the board (no-changelog) (#9561)
  refactor(core): Extract all Auth-related User columns into a separate entity (#9557)
  refactor(core): Update supertest, and fix some typing errors (no-changelog) (#9527)
  fix(editor): Render checkboxes in markdown (#9549)
  test(core): Rename and combine all credential api tests (no-changelog) (#9550)
  🚀 Release 1.44.0 (#9553)
  feat(editor): Node Creator AI nodes improvements  (#9484)
  fix(editor): Show workflow data in header when execution page is hard reloaded (#9529)
  refactor(core): Stop reporting to Sentry `NodeApiError` with 5xx status codes (no-changelog) (#9552)
  feat: HighLevel oauth2 api credentials (#9542)
  fix(editor): Fix empty node name handling (#9548)
  ci: Fix vulnerable dev dependencies (no-changelog) (#9545)
  fix: Don't throw errors for NaN in number operators in the filter component  (#9506)
  fix(core): Try setting postgres search_path on the database (#9530)
  fix(editor): Redirect to workflows list after deleting a workflow (#9546)

# Conflicts:
#	packages/editor-ui/src/views/NodeView.vue
#	pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants