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

Login/registration broken in localdev #72

Closed
ehirsch opened this issue Jun 20, 2017 · 8 comments
Closed

Login/registration broken in localdev #72

ehirsch opened this issue Jun 20, 2017 · 8 comments

Comments

@ehirsch
Copy link

ehirsch commented Jun 20, 2017

I have been following the documentation to setup a local wicked. Everything works like a charm! Until - I try to login.

Any attempt to login with the default admin user will result in the login page being shown again. When navigation away from the login page I am actually login. But now it is not possible to logout again…

Something is terrible off. (It all worked yesterday - I just recreated the setup step by step).

I am using the 'latest' tag so 0.11.6 is probably the version.

OS: macOS (10.12.5)
Browser: Chrome and Safari both current (59.0.3071.86 and 10.1.1)

@DonMartin76
Copy link
Member

I can reproduce this on macOS 10.12 currently. I can't yet tell exactly what's wrong, will come back with more information as soon as I know more. It may have to do with the self signed certificates. Can you please also add operating system and the browser (and version) you are using?

Thanks for reporting!

@DonMartin76
Copy link
Member

Everything works as intended when using (a) real DNS names, and (b) valid certificates (e.g. from Let's Encrypt, see https://wicked-demo.haufe.io), so this has either something to do with the certificates, or some DNS lookup hiccup when using /etc/hosts.

@achwie
Copy link
Contributor

achwie commented Jun 23, 2017

I've encountered a similar problem to Eike. For me the login didn't work randomly, but could be "fixed" by restarting the portal / portal-api services. Therefore to me it doesn't look like a config/cert issue.

@ehirsch
Copy link
Author

ehirsch commented Jun 27, 2017

Any new insights? Can I help with anything?

@achwie achwie self-assigned this Jul 14, 2017
@achwie
Copy link
Contributor

achwie commented Jul 14, 2017

It seems like the user is authenticated correctly by the portal-api service. But somehow the auth info (user) is not transferred to the signup page during the success redirect to /signup (in passport/lib/authenticate.js:241). As far as I understand, this leads to the signup page not seeing the user as authenticated, because it expects the user object in the request but it's not there.

@DonMartin76
Copy link
Member

I have actually found the culprit. It's the update of write-file-atomic from 1.3.1 to 1.3.4 which seems to have broken it (end of April/beginning of May). I will pin it to 1.3.1 for the time being and notify the maintainer of session-file-storage to do something about it.

@DonMartin76 DonMartin76 self-assigned this Jul 18, 2017
DonMartin76 added a commit to apim-haufe-io/wicked.ui that referenced this issue Jul 18, 2017
…o version 1.3.1 for the time being (used by session-file-store).

Additionally update some other components.
@DonMartin76 DonMartin76 added this to the 0.11.7 milestone Jul 18, 2017
@ehirsch
Copy link
Author

ehirsch commented Jul 18, 2017

Oh boy - the joy of the node ecosystem…
Good catch thou!

@DonMartin76
Copy link
Member

Fixed in 0.11.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants