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

Registration process 'hangs' when user is already signed in to Github #422

Closed
brylie opened this issue Sep 2, 2015 · 14 comments
Closed
Assignees
Labels
Milestone

Comments

@brylie
Copy link
Contributor

brylie commented Sep 2, 2015

When a user clicks 'register with Github' and is already signed in to github, the server returns a 500 error.

@brylie brylie added the bug label Sep 2, 2015
@brylie
Copy link
Contributor Author

brylie commented Sep 2, 2015

Reported by @ccsr

@bajiat bajiat added the icebox label Jun 1, 2016
@philippeluickx
Copy link
Contributor

+1 this is still an issue. Should we at least hide that button for now as it is broken?

@brylie
Copy link
Contributor Author

brylie commented Sep 27, 2016

Ping @bajiat. Should we prioritize this bug?

@philippeluickx
Copy link
Contributor

My suggestion is to remove the feature (button) and reprioritize to later.

@bajiat
Copy link
Contributor

bajiat commented Sep 28, 2016

@jykae took a quick look and suspects that we are still using boilerplate
code for Github signin/signup. Would this be fixed by using accounts-github
instead? Info can be found from the Meteor guide. If yes, then I would
prioritize this.

@brylie
Copy link
Contributor Author

brylie commented Sep 28, 2016

We also need to find out if Apika needs Github authentication. Ping @kyyberi

@bajiat bajiat self-assigned this Sep 29, 2016
@bajiat
Copy link
Contributor

bajiat commented Sep 29, 2016

Self-assigned. Purpose is to check the workload for remaining sprint on Monday and then make a decision on whether we would be able to fix or hide.

@bajiat
Copy link
Contributor

bajiat commented Sep 29, 2016

Here is info on login packages from Meteor guide, if that helps: https://guide.meteor.com/accounts.html#supported-login-services

@bajiat bajiat added planning and removed icebox labels Oct 3, 2016
@jykae
Copy link
Contributor

jykae commented Oct 3, 2016

@bajiat @brylie
Our implementation of Github does not completely follow guidelines: http://docs.meteor.com/api/accounts.html#service-configuration

Our login hook seems to try login manually with Github API:
https://github.com/apinf/platform/blob/develop/users/server/accounts_hooks.js#L38

Suggested way in guidelines to do login is to use loginWithGithub function, that uses saved service configuration. Service configuration is saved & updated right way.

I can successfully register & login with Github locally with development version.
Issue verified at least in nightly.

Gave estimation of 2 days to try out Github login in Meteor guidelines proposed way.

@bajiat bajiat unassigned jykae and bajiat Oct 3, 2016
@jykae
Copy link
Contributor

jykae commented Oct 3, 2016

@bajiat @brylie ROOT_URL env variable had typo in nightly.apinf.io, missing "h". thanks @shaliko for quick fix.
Verified to work with @Laura-Sampo after change.

@bajiat
Copy link
Contributor

bajiat commented Oct 3, 2016

@philippeluickx Can you also verify that you are able to register using Githubm authentication?

@philippeluickx
Copy link
Contributor

All good now!

@brylie
Copy link
Contributor Author

brylie commented Oct 3, 2016

Cool. @bajiat @jykae can we close this issue?

@brylie brylie added this to the Sprint 32 milestone Oct 3, 2016
@jykae
Copy link
Contributor

jykae commented Oct 3, 2016

@brylie @bajiat I am fine to close.

@bajiat bajiat closed this as completed Oct 3, 2016
@bajiat bajiat removed the in progress label Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants