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

DEV: Use GitHub's state param for security #3

Merged
merged 6 commits into from
May 25, 2023
Merged

DEV: Use GitHub's state param for security #3

merged 6 commits into from
May 25, 2023

Conversation

markvanlan
Copy link
Contributor

No description provided.

Copy link

@janzenisaac janzenisaac left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 16 to 18
return ajax(`/github-verification/auth_url`).then((response) => {
window.location = response.url;
});
Copy link
Member

Choose a reason for hiding this comment

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

Could make this faster and simpler by doing

window.location = 'getAbsoluteURL(`/github-verification/auth-url`)

and then doing a 302 redirect on the server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that

@markvanlan markvanlan merged commit 14418b8 into main May 25, 2023
3 checks passed
@markvanlan markvanlan deleted the use-state branch May 25, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants