camicroscope / Distro

Docker distribution of camicroscope and all its components
http://camicroscope.org
BSD 3-Clause "New" or "Revised" License
28 stars 145 forks source link

JsonWebTokenError - Issue using Secret Key #185

Closed VisweshK closed 1 year ago

VisweshK commented 2 years ago

Bug Descriptions Created the credentials from the linked guide and edited the client id in config/login.html. I also edited config/add_users.js to add a new admin user and uncommented the line to insert into the db.

When run I'm getting the following error

Screen Shot 2022-01-19 at 5 06 59 PM

Further it seems like it successfully signs in via the Google-sign in but then produces an error stating "User not found" and redirects to the User Signup page.

Currently I'm unsure where the client secret key needs to be added and if the mongo db update is working to add the new user as an admin since I also see a BulkWriteError from mongo in the logs.

Desktop (please complete the following information):

birm commented 2 years ago

Thanks for the report, and apologies that you're experiencing this issue.

The section of code it's complaining about and where it's being invoked suggests that the public/private key pair for the service itself wasn't generated, or otherwise has some issue.

If you can, please try either:

and let us know if that resolve this issue.