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

Open oauth callback endpoints to be public #3168

Merged
merged 1 commit into from Apr 25, 2022

Conversation

krynble
Copy link
Contributor

@krynble krynble commented Apr 21, 2022

Copy link

@hasan-dot hasan-dot left a 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

Comment on lines +69 to +70
req.url.startsWith(`/${restEndpoint}/oauth2-credential/callback`) ||
req.url.startsWith(`/${restEndpoint}/oauth1-credential/callback`) ||

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.

Comment on lines -240 to +249
>;
> & {
user?: User;
};
}

namespace OAuth2Credential {
type Auth = OAuth1Credential.Auth;
type Callback = AuthenticatedRequest<{}, {}, {}, { code: string; state: string }>;
type Callback = AuthenticatedRequest<{}, {}, {}, { code: string; state: string }> & {
user?: User;
};

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

@janober janober merged commit 01807d6 into master Apr 25, 2022
@janober janober deleted the n8n-3198-fix-oauth-issue-in-combination-with branch April 25, 2022 08:51
@janober
Copy link
Member

janober commented Apr 25, 2022

Thanks a lot. Got merged.

@janober janober added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Upcoming Release Will be part of the upcoming release labels Apr 25, 2022
@janober
Copy link
Member

janober commented Apr 25, 2022

Got released with n8n@0.174.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants