nuxt-auth-utils icon indicating copy to clipboard operation
nuxt-auth-utils copied to clipboard

Port is not getting added in realm when authenticating with Steam

Open MJPetermann opened this issue 7 months ago • 1 comments

Hey there, while trying to get the login with steam to work, I stumbled upon a bug, when hosting on localhost.

If your nuxt is hosted on e.g. port 3000 it causes Steam to throw a 403 Access Denied error. This happens because the realm doesn't include the port. It is easily fixed by changing the setting of the realm: "openid.realm": `${url.protocol}//${url.hostname}:${url.port}`, in https://github.com/atinux/nuxt-auth-utils/blob/main/src/runtime/server/lib/oauth/steam.ts

Hope this gets fixed, but till then that's the workaround :)

MJPetermann avatar Jun 09 '25 20:06 MJPetermann

Now even with the port, I'm getting a 403 error. I used your workaround for the last month. I "fixed" this using a tunnel. That's a very annoying bug -_-

kubo997 avatar Jul 05 '25 16:07 kubo997