-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Provide scopes for custom node operations #3164
Conversation
ivov
commented
Apr 20, 2022
•
edited
Loading
edited
@@ -1932,6 +1933,8 @@ class App { | |||
// OAuth2-Credential/Auth | |||
// ---------------------------------------- | |||
|
|||
this.app.use(`/${this.restEndpoint}/oauth2-credential`, oauth2CredentialController); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In future we can move /oauth2-credential/auth
and /oauth2-credential/callback
to the new controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should 😊 can you create a Tech Debt ticket for it?
@@ -58,6 +58,7 @@ class LoadNodesAndCredentialsClass { | |||
// In case "n8n" package is the root and the packages are | |||
// in the "node_modules" folder underneath it. | |||
path.join(__dirname, '..', '..', 'node_modules', 'n8n-workflow'), | |||
path.join(__dirname, '..', 'node_modules', 'n8n-workflow'), // for test run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not ideal, but larger refactoring would seem out of scope.
@@ -1932,6 +1933,8 @@ class App { | |||
// OAuth2-Credential/Auth | |||
// ---------------------------------------- | |||
|
|||
this.app.use(`/${this.restEndpoint}/oauth2-credential`, oauth2CredentialController); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should 😊 can you create a Tech Debt ticket for it?