portr
portr copied to clipboard
Invalid state
Describe the bug After setup when I forward a port it gives an url, when going to the URL it asks for login, after login, it says "Invalid state'
Can you add a screenshot?
Sure, its pretty empty tho:
Is this a screenshot of the browser? Can you add more info?
Yes.
I get error 400 from the admin app.
https://portr.example.com/api/v1/auth/github/callback?code=SOME_CODE&state=SOME_STATE
It might be due to the infrastructure. I've forwarded the port 8000 through Nginx Proxy Manager. Which works fine. Port 2222 is forwarded using iptables to extern server with tailscale.
Must be, can you check if this cookie is being set correctly https://github.com/amalshaji/portr/blob/23dbede7c7fc7d49d54467ec1d9df5da0e8c5c20/admin/src/portr_admin/apis/v1/auth.py#L55-L57
Yea, there is two cookies:
Can you check if the state in the callback and the cookie is the same? Ideally, they should be