auth0 / auth0-cli

Build, manage and test your Auth0 integrations from the command line
https://auth0.github.io/auth0-cli/
MIT License
238 stars 51 forks source link

Auth0 - Laravel connection #998

Closed Baguettou closed 2 months ago

Baguettou commented 2 months ago

Checklist

Description

I have made a Laravel project in using docker and nginx, also I followed the official steps to configure the auth0 connection https://auth0.com/docs/quickstart/webapp/laravel/01-login#laravel-installation it was working fine but had to update the App and the API, so I deleted the old App and API from Auth0 Dashboard and made a new App and API, also updated the .auth0.app.json, the .auth0.api.json and the variables in the .env, the problem is that after updating everything it says "Oops!, something went wrong" and "There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us." so after checking the logs in Auth0 dashboard it looks like the connection somehow is using the old client ID that shouldn't exist :(

Expectation

Actualized connection between Laravel backend and Auth0.

Reproduction

  1. Created first time .auth0.app.json and .auth0.api.json using official binary and documentation:

https://auth0.com/docs/quickstart/webapp/laravel/01-login#laravel-installation

curl -sSfL https://raw.githubusercontent.com/auth0/auth0-cli/main/install.sh | sh -s -- -b .

  1. Deleted them in Auth0 Dashboard
  2. Created .auth0.app.json and .auth0.api.json again and updated .env

./auth0 apps create --name "LockDoc" --type "regular" --auth-method "post" --callbacks "https://lockdoc.tech/callback" --logout-urls "https://lockdoc.tech" --reveal-secrets --no-input --json > .auth0.app.json

./auth0 apis create --name "LockDocAPI" --identifier "https://github.com/auth0/laravel-auth0" --offline-access --no-input --json > .auth0.api.json

  1. Somehow the connections are still using client old ID
  2. Checked everywhere for old ID, didn't find it anywhere in the project folder
  3. Restarted all images, containers, even restarted the vm
  4. Still same problem

Auth0 CLI version

auth0 version 1.4.0 54e9a30eeb58a4a7e40e04dc19af6869036bfb32