Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column 'code_challenge' cannot be null #1063

Open
lewmilburn opened this issue May 4, 2024 · 1 comment
Open

Column 'code_challenge' cannot be null #1063

lewmilburn opened this issue May 4, 2024 · 1 comment

Comments

@lewmilburn
Copy link

Hi, I've followed the cookbook guide and am getting this error.

Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'code_challenge' cannot be null in /**/oauth2-server-php/src/OAuth2/Storage/Pdo.php:292 Stack trace: #0 /**/oauth2-server-php/src/OAuth2/Storage/Pdo.php(292): PDOStatement->execute() #1 [internal function]: OAuth2\Storage\Pdo->setAuthorizationCodeWithIdToken() #2 /**/oauth2-server-php/src/OAuth2/Storage/Pdo.php(254): call_user_func_array() #3 /**/oauth2-server-php/src/OAuth2/ResponseType/AuthorizationCode.php(59): OAuth2\Storage\Pdo->setAuthorizationCode() #4 /**/oauth2-server-php/src/OAuth2/ResponseType/AuthorizationCode.php(31): OAuth2\ResponseType\AuthorizationCode->createAuthorizationCode() #5 /**/oauth2-server-php/src/OAuth2/Controller/AuthorizeController.php(140): OAuth2\ResponseType\AuthorizationCode->getAuthorizeResponse() #6 /**/oauth2-server-php/src/OAuth2/Server.php(384): OAuth2\Controller\AuthorizeController->handleAuthorizeRequest() #7 /**/authorize.php(25): OAuth2\Server->handleAuthorizeRequest() #8 {main} thrown in /**/oauth2-server-php/src/OAuth2/Storage/Pdo.php on line 292
@jubayerarefin
Copy link

jubayerarefin commented May 30, 2024

as a quick fix, I added the two missing columns: 'code_challenge' & 'code_challenge_method'.

Already mentioned in #1059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants