glenndehaan / unifi-voucher-site

UniFi Voucher Site is a web-based platform for generating and managing UniFi network guest vouchers
MIT License
57 stars 12 forks source link

Getting 502 after login via OpenID (Authentik) #51

Open tomcatcw1980 opened 3 weeks ago

tomcatcw1980 commented 3 weeks ago

The question

Hi Glenn,

still loving your app. As I see you implemented OpenID. Thanx for that.

I installed the feature immediately, but after successfully logging in via Authentik I get a 502 Bad Gateway Error. When I press F5 again to refresh the web page, it shows me the following error:

BadRequestError: invalid_grant (The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client) at ResponseContext.callback (/app/node_modules/express-openid-connect/lib/context.js:366:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Go back home

Do you have an idea of what's going wrong? I set everything as mentioned in your docs.

Greetings Christian

glenndehaan commented 3 weeks ago

Hi @tomcatcw1980,

Could you post the version of both Authentik and UniFi Voucher Site. The thing is, there where a lot of breaking changes and I want to make sure I can replicate your issue locally.

Kind regards, Glenn

tomcatcw1980 commented 3 weeks ago

Hi Glenn,

Voucher Site latest: 4.3.3 Authentik: 2024.8.3

Greetings

glenndehaan commented 3 weeks ago

Hi @tomcatcw1980,

I have some bad news. I just setup a local instance with this version and followed the guide and it seems to be working fine. So i'm unsure where the problem may be. Can you verify the steps and make sure the client id and secret are correct?