-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Open oauth callback endpoints to be public #3168
Conversation
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.
Always glad to learn something new! Thanks for the PR
req.url.startsWith(`/${restEndpoint}/oauth2-credential/callback`) || | ||
req.url.startsWith(`/${restEndpoint}/oauth1-credential/callback`) || |
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.
Makes total sense to add these as a default non authenticated routes.
>; | ||
> & { | ||
user?: User; | ||
}; | ||
} | ||
|
||
namespace OAuth2Credential { | ||
type Auth = OAuth1Credential.Auth; | ||
type Callback = AuthenticatedRequest<{}, {}, {}, { code: string; state: string }>; | ||
type Callback = AuthenticatedRequest<{}, {}, {}, { code: string; state: string }> & { | ||
user?: User; | ||
}; |
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.
This is exactly what I was searching for, but couldn't find it
Thanks a lot. Got merged. |
Got released with |
Community issue:
https://community.n8n.io/t/oauth-authorization-error-zendesk-oauth2-api-credential/12439