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

Generate secret route not found #49

Open
kpabbd opened this issue Feb 21, 2023 · 3 comments · May be fixed by #58
Open

Generate secret route not found #49

kpabbd opened this issue Feb 21, 2023 · 3 comments · May be fixed by #58
Labels

Comments

@kpabbd
Copy link

kpabbd commented Feb 21, 2023

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
Copy link
Owner

runelaenen commented Feb 21, 2023

Hello,

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

@kpabbd
Copy link
Author

kpabbd commented Feb 21, 2023

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
Copy link

zolthan commented Aug 2, 2023

We also get the above error.

WorksDev added a commit to WorksDev/shopware6-two-factor-auth that referenced this issue Nov 9, 2024
@WorksDev WorksDev linked a pull request Nov 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants