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

Error: Failed to find refresh token when inviting new members #1640

Open
engrrio07 opened this issue Apr 1, 2024 · 4 comments
Open

Error: Failed to find refresh token when inviting new members #1640

engrrio07 opened this issue Apr 1, 2024 · 4 comments

Comments

@engrrio07
Copy link

Describe the bug

When new members receive an invite they get redirected to log-in page immediately instead of sign-up page and encounters 400 Bad Request on /api/v1/auth/token route.

To Reproduce

Steps to reproduce the behavior:

  1. Invite new member
  2. New member receives email and click's on Join now
  3. New member redirects to log-in page instead of sign-up page
  4. token on network requests fails with 400 Bad Request status on /api/v1/auth/token

Expected behavior

New user should be able to sign-up

Screenshots

image

Platform you are having the issue on:

Self-hosted infisical running on Kubernetes deployed via infisical-standalone/1.0.6 helm chart

Additional context

  • The self-hosted infisical was recently migrated to Postgres from Mongodb.
  • Findings, req.cookies.jid is missing (reference).
@jugrajsingh
Copy link

My Deployment had the same issue. I disabled signups.

The Objective is to disable signups so no unwanted user can signup to the instance while allowing invited users to login.

@dmweapon
Copy link

dmweapon commented Apr 7, 2024

I have same issue...
and my backend log from command "docker logs infisical-backend" below

{"level":50,"time":1712641055737,"pid":1,"hostname":"46f996033a09","reqId":"req-2ph","severity":"ERROR","err":{"type":"UnauthorizedError","message":"Token missing","stack":"Unauthorized access: Token missing\n at Object. (file:///backend/dist/server/plugins/auth/verify-auth.mjs:13:11)\n at hookIterator (/backend/node_modules/fastify/lib/hooks.js:405:10)\n at next (/backend/node_modules/fastify/lib/hooks.js:239:18)\n at handleResolve (/backend/node_modules/fastify/lib/hooks.js:250:7)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","name":"Unauthorized access"},"msg":"Token missing"}
{"level":30,"time":1712641055737,"pid":1,"hostname":"46f996033a09","reqId":"req-2ph","severity":"INFO","res":{"statusCode":403},"responseTime":0.8920488357543945,"msg":"request completed"}

is it about Object.handler...? it contains strange path...?
I think path of "verify-auth.mjs" is wrong...

(using version3 of "docker-compose.prod.yml" file)

@maidul98
Copy link
Collaborator

maidul98 commented Apr 9, 2024

@akhilmhdh can you please take a look at this when you have time?

@pat-s
Copy link

pat-s commented Apr 9, 2024

For a while I thought this might be a local issue of mine but I am unable to login anymore after my docker-compose based installation has upgraded itself lately to the latest docker tag.
I can't fully traceback which updated introduced it but right now I can't login with any account anymore and resetting the PW also does not work :/

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

No branches or pull requests

5 participants