Open jpnothard opened 4 years ago
I'm having this same issue. I've deployed to Netlify and am also stuck in that nasty looping on the protected pages.
@jpnothard this module won't work with a statically generated app, OAuth requires a server side component.
Have you tried running with nuxt start
on the server?
I deployed it to elastic beanstalk and it works great.
Every time I made a change in nuxt.config.js
that is related to the module, I had to rebuild the app. I don't know the reason but you can also try that. It fixed my issue.
Same issue but with localhost!
Hi, I am hoping someone can help me troubleshoot a problem.
I am trying to setup oauth sign in using Okta. I am using a tutorial i found the Okta docs. You can have a look at the repo for this here. The only change I have made is that I removed the Axios call on the progress page and entered the content manually.
The above example works on my localhost, works as expected. But once I run
npm run generate
and push it to a live server (Currently using Netlify) I get stuck in some kind of reload loop on this page '/auth/login?redirect-url=%2Fprogress'. Basically it downloads the assets and then the page refreshes.I have trawled the internet and haven't found anything useful. I have tried to Generate with SPA, removed .env and entered the details in manually, changed to an AWS server, updated to the latest packages. I have also removed the pipeline and rand the common on my local machine and uploaded it manually. I even entered incorrect OAuth credentials but found that on my local it will just redirect you to an OKTA 404 page instead of the Okta login form.
Any help would be appreciated.