Erro…
Hey @brunohoinackib welcome to the community!
Thanks for the screenshots What are you using as your domain in configuration?
Hey, good night.
I’m try exec the project example in the Onboard JWT.
my .env has:
Remove these lines if you are using the JSON-based configuration.
AUTH0_DOMAIN={yourDomain}
AUTH0_CLIENT_ID={yourClientId}
AUTH0_CLIENT_SECRET={yourClientSecret}
AUTH0_AUDIENCE={yourApiIdentifier}
AUTH0_REDIRECT_URI=${APP_URL}/callback
Do you mind DMing me your .env
? Please omit AUTH0_CLIENT_SECRET
No problem, this is a new project dont has my ‘AUTH_CLIENT_SECRET’.
About this maybe the problem is need insert my credentials.
But this is a example project for beginners, this is stranger.
my .env:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:kuhpA4KErnuTApQ6YYZR7XYGuszTunHVj0tvd++WW+Y=
APP_DEBUG=true
APP_URL=http://localhost:8000
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME=“${APP_NAME}”
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_PUSHER_APP_KEY=“${PUSHER_APP_KEY}”
VITE_PUSHER_HOST=“${PUSHER_HOST}”
VITE_PUSHER_PORT=“${PUSHER_PORT}”
VITE_PUSHER_SCHEME=“${PUSHER_SCHEME}”
VITE_PUSHER_APP_CLUSTER=“${PUSHER_APP_CLUSTER}”
Remove these lines if you are using the JSON-based configuration.
AUTH0_DOMAIN={yourDomain}
AUTH0_CLIENT_ID={yourClientId}
AUTH0_CLIENT_SECRET={yourClientSecret}
AUTH0_AUDIENCE={yourApiIdentifier}
AUTH0_REDIRECT_URI=${APP_URL}/callback
Thanks for sharing! I’m not positive about the rest of the values, but you’ll certainly need to populate the the Auth0 specific values with those from the application you created for this project in your Auth0 dashboard. I’d expect those to look something like:
AUTH0_DOMAIN=dev-yxoacp77.us.auth0.com
AUTH0_CLIENT_ID=KnMtXwJypUc1IMKCDdLQKOXNqoLHHXnQ
AUTH0_CLIENT_SECRET=rqzr5NP1kPHMPDE_JEnlGCer3ZEBQqfn4whe
AUTH0_AUDIENCE=https://test-api-endpoint
AUTH0_REDIRECT_URI=${APP_URL}/callback
Good morning.
new erro after edit my .env.
my .env:
“# Remove these lines if you are using the JSON-based configuration.”
AUTH0_DOMAIN=dev-w7geg3avt10ikrb4.us.auth0.com
AUTH0_CLIENT_ID=n1yDEzl91dDRV7XwFZv4BsKqPWkX3zZs
AUTH0_CLIENT_SECRET=Ommited
AUTH0_AUDIENCE=https://test-api-endpoint
AUTH0_REDIRECT_URI=${APP_URL}/callback
now i’m try edit in my authO config to:
and my .env:
AUTH0_DOMAIN=dev-w7geg3avt10ikrb4.us.auth0.com
AUTH0_CLIENT_ID=n1yDEzl91dDRV7XwFZv4BsKqPWkX3zZs
AUTH0_CLIENT_SECRET=Ommited
AUTH0_AUDIENCE=https://dev-w7geg3avt10ikrb4.us.auth0.com/api/v2/
AUTH0_REDIRECT_URI=http://localhost:8000/callback
in the localhost:8000/login show this:
when click in login with google:
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.