admin-dashboards / nextjs-argon-dashboard

MIT License
0 stars 0 forks source link

How to test in Local Environment #5

Open admin-dashboards opened 2 years ago

admin-dashboards commented 2 years ago

Hello @Mortrest,

The README in the quick start section should explain how to use the app in a local environment. Once the user got the secrets from the Oauth provider, he need an https connection for the SignIN callback.

To solve this, a new target & dependency was added to the project:

Using this set up, the flow works, but the app redirects the user forever to authenticate. Basically, the OAuth Sign In is not detected by the app.

Note: Chrome (incognito more) was used for tests.

Please take a look. ty!

alivarastepour commented 2 years ago

hello there. no extra configuration is needed to test the OAuth in local env. setting the Authorization callback URL and Homepage URL in OAuth provider correctly will do the trick. an example would be: Homepage URL : http://localhost:3000/ Authorization callback URL : http://localhost:3000/api/auth/callback/${provider_name e.g github}