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

GitHub login method for auth #491

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Conversation

rr-adam
Copy link
Contributor

@rr-adam rr-adam commented Sep 9, 2024

There is now Login with Github button in the Login modal.

GitHub Login Flow:

  1. User clicks GitHub login button
  2. Redirects to Strapi GitHub auth URL
  3. After auth, redirects to /ontologyName/connect/github
  4. Callback page gets access_token from URL
  5. Uses access_token to log user into Strapi
  6. Redirects user to /ontologyName/ontology

@rr-adam rr-adam added the enhancement New feature or request label Sep 9, 2024
@rr-adam rr-adam self-assigned this Sep 9, 2024
@rr-adam rr-adam linked an issue Sep 9, 2024 that may be closed by this pull request
mereolog
mereolog previously approved these changes Sep 9, 2024
general/pages/connect/github.vue Outdated Show resolved Hide resolved
statusMessage.value = 'Authentication failed. Redirecting...';
toastStore.addToast(`GitHub authentication failed!`, 'error');
authStore.clear();
setTimeout(() => router.push('/'), 2000);
Copy link
Contributor

@przemekgradzki przemekgradzki Sep 12, 2024

Choose a reason for hiding this comment

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

After a failed login, the user should return to the initial page instead of the /

@mereolog mereolog merged commit e331061 into develop Sep 13, 2024
1 check passed
@mereolog mereolog deleted the 487-github-login-method-for-auth branch September 13, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub login method for auth
3 participants