auth0 / auth0-PHP

PHP SDK for Auth0 Authentication and Management APIs.
https://auth0.com/docs/libraries/auth0-php
MIT License
380 stars 209 forks source link

Invalid state #763

Closed ihabkhaled closed 3 months ago

ihabkhaled commented 3 months ago

Checklist

SDK Version

8.7

PHP Version

PHP 8.2

Description

image I am trying to login but in the callback I have this error I tried to add dd() inside ewxchange function

the $pkce variable is not set $pkce = $store->getOnce('code_verifier');

image

image

I am using version 7.14 auth0/login "name": "auth0/auth0-php", "version": "8.11.1",

Itried this command php artisan key:generate

I tried it and it bypassed now I have another issue but the issue persists again

image

How can we reproduce this issue?

Reproduction 1-login 2-the call back url

ihabkhaled commented 3 months ago

env file

AUTH0_DOMAIN=dev-u37mpzobnwula3ip.us.auth0.com AUTH0_CLIENT_ID= AUTH0_CLIENT_SECRET= AUTH0_CALLBACK_URL=http://127.0.0.1:8000/callback AUTH0_BASE_URL=http://127.0.0.1:8000 APP_URL=http://127.0.0.1:8000

ihabkhaled commented 3 months ago

APP_NAME=Laravel APP_ENV=local APP_DEBUG=true APP_KEY=base64:uj8tdbIm2n6Fr3U9jXM4TlN4Bk9RXObJXPIkxEUimkQ=

evansims commented 3 months ago

Hi @ihabkhaled 👋 This issue would be better raised in the Laravel SDK repository, as it does not involve the PHP SDK.

In any event, the cURL error you're seeing is not SDK-related. The error indicates the DNS resolution on the server you are executing PHP from is unable to resolve the certificate. This is a server configuration issue, and is not something the SDK influences.