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

No registeration link / No login details #662

Closed
mehrdadasadiut opened this issue Jan 30, 2023 · 14 comments
Closed

No registeration link / No login details #662

mehrdadasadiut opened this issue Jan 30, 2023 · 14 comments
Assignees
Labels

Comments

@mehrdadasadiut
Copy link

Expected behaviour

Login credentials / registeration link
Actually the guidelines for this type of installation did not mention even how to add users.

Actual behaviour

No such credentials available / no link available

Steps to reproduce the behaviour

Install cairis using " Installation and configuration of server with account registration via GitHub (automated) "

Version of CAIRIS

latest

Details of browser or, if applicable, details of the OS used to host CAIRIS

FireFox / UBUNTU 20.4

Registeration

@mehrdadasadiut
Copy link
Author

mehrdadasadiut commented Jan 30, 2023

Reg Error

However, there is a link for registration on remote clients. But it does not work.

@mehrdadasadiut
Copy link
Author

Server side logs.
servererrorLog

@failys
Copy link
Collaborator

failys commented Jan 30, 2023

Did you setup your server as per the 'server with account registration' instructions here: https://cairis.readthedocs.io/en/latest/install.html#installation-and-configuration-of-server-with-account-registration-via-github-automated . Also, Firefox is known to be problematic; Chromium (or indeed any browser other than Firefox) might be your best bet once you're setup (I'm conscious the problem here is on the server rather than the browser).

@mehrdadasadiut
Copy link
Author

in Chrome the registeration / forget password icon is shown but it does not work as I mentioned in previous image.
I followed this:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt install curl -y && sudo apt install net-tools -y && curl -s https://cairis.org/serverInstall.sh | bash -s my-secret-pw mymailserver.com 465 admin@mymailserver.com mypassword

with appropriate values of myself ofc.

@failys failys self-assigned this Jan 30, 2023
@failys failys added the bug label Jan 30, 2023
@failys
Copy link
Collaborator

failys commented Jan 30, 2023

I need to do a bit of digging around to get to the bottom of this issue. The issue is almost certainly not with the CAIRIS code, but with the open-source dependencies it uses (likely Flask Security). In the meantime, have you tried adding account manually on the server? That should give you a workaround for now at least.

@mehrdadasadiut
Copy link
Author

I am curious also but do not know how to to do that to see if login bottom also has bug or not. Could you please give a hand?

@failys
Copy link
Collaborator

failys commented Jan 30, 2023

If the login button had a bug then you wouldn't be able to login into the live demo at https://demo.cairis.org.

@mehrdadasadiut
Copy link
Author

How I can add a user manually to see if CAIRIS logs me in on a remote client or not?

@failys
Copy link
Collaborator

failys commented Jan 30, 2023

It's documented here: https://cairis.readthedocs.io/en/latest/maintenance.html

@failys
Copy link
Collaborator

failys commented Jan 30, 2023

BTW - of the current issues, the inability to register will be a priority for me to look at. However, as maintaining CAIRIS isn't my day job, it might be a few days until I get the time to look at this. However, it's an open source project so, if you or your colleagues have a bit of time on your hands, you're more than welcome to submit a pull request if you get to the bottom of this dependency issue.

@mehrdadasadiut
Copy link
Author

I will use the manual registeration for now as you already provided the guideline.
Yes our priority is also the registration and a working cairis. We are a bit lack in dev staffs and currently had hard time to fix the issue and bring it up at least to first home page.
Thanks for your help and consideration

@mehrdadasadiut
Copy link
Author

btw, the manual registration is working.

@failys
Copy link
Collaborator

failys commented Feb 1, 2023

If you want to try doing a clean install of a server with self-registration, this should now be working. It took a bit longer than I hoped to fix this as I had to unpack the AuthN workflow to account for changes to the way SQLAlchemy now works. Things look good with the test cases, my own installation of a server with self-registration, and with the live demo, so - hopefully - things should be good for you too.

@failys
Copy link
Collaborator

failys commented Feb 1, 2023

Closing for now, but we can re-open if this isn't resolved, or open a new issue if we find other problems off the back of this.

@failys failys closed this as completed Feb 1, 2023
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

2 participants