runelaenen / shopware6-two-factor-auth

Two Factor Authentication for Shopware 6 💙
MIT License
35 stars 17 forks source link

Generate secret route not found #49

Open kpabbd opened 1 year ago

kpabbd commented 1 year ago

Hi,

I just installed the plugin and followed the install instructions in the README. When I try to setup 2FA by clicking on the "Click me to get started button" i get the following error:

No route found for \"GET https://<domain>/api/rl-2fa/generate-secret\" (from \"https://<domain>/admin\

When i debug the router I do see a route to generate the secret, among others:

/api/v{version}/rl-2fa/generate-secret

Is there something I am missing during the installation?

runelaenen commented 1 year ago

Hello,

Which version of the plugin did you install? Which version of Shopware are you using?

kpabbd commented 1 year ago

Hi Rune,

I checked the version. I was using version 1.1.2 of the plugin and Shopware 6.4.19, I updated the plugin to 1.2.0 and now I can get a little bit further :)

On the api/rl-2fa/generate-secret?holder=<admin_name> route i get an HTTP 401 error:

"Missing \"Authorization\" header"
"The resource owner or authorization server denied the request."

The /admin/rl-2fa/qr-code/secret.png returns a 404 response. Because of the 2FA QR image is not loaded properly: image

zolthan commented 1 year ago

We also get the above error.