Start with php -S localhost:8000 -t public
Ngrok provides public urls for Oauth from your local environment.
Start ngrok by pointing it to the port where your local server is running:
ngrok http -subdomain=findologic 8000
- Login to developer portal and go to
My Apps
.
- Edit the app and go to tab
Technical
. - Set the Auth Callback URL and Load Callback URL, for development set url from Ngrok.
- On developer portal, click on
View Client ID
of the app. - Copy
.env-example
to.env
and set the following environment variables:DEV_CLIENT_ID=<CLIENT_ID>
DEV_CLIENT_SECRET=<CLIENT_SECRET>
DEV_CALLBACK_URL=<URL TO AUTH CALLBACK ENDPOINT>