-
Notifications
You must be signed in to change notification settings - Fork 34
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
PHP Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_client #24
Comments
Here's the code Im using:
|
Did you see @mattrjk's response on the item you referenced? |
Thanx @kschroeder, took me a while to figure out where to set this. Initially I thought its the Redirect URL setting in Azure. Sorted thanx! |
OK, I probably need to do a better job of documenting that. |
@ggPixel How did you solve the error ? Please help. |
@arjun1992 does the last comment at #22 (comment) help out? |
Hello @kschroeder . Thanks for your reply. No i didn't help me. I think i am missing out something. Could you help me understand. I have the following configuration in backend Also following is my code
|
@arjun1992 Could you post your stack trace? |
Hi I am having a similar error, within Azure I have set my redirect URL to Local Host, I am hosting a MAMP local server within the server file of the example. When I go to local host it correctly redirects me to login.microsoft online then after authenticating it redirects me to: http://localhost/?code=M49310041-530f-9ad5-12c2-ac0e8b0b259b&state=Lx6nVaaxeF6q1kyZ9r93v00h27dMCH7x and chrome displays the error: LocalHost is unable to handle this request, HTTP ERROR 500 I assume this is an error going from https to http but how to I fix this? |
Hi @ggPixel @kschroeder @ogriffithjones @Rockstar04 Getting the following error
Would appreciate any help provided by you. Thanks ! |
@arjun1992 see @mattrjk comment. Try setting the
|
@ggPixel Thanks a lot ... Working fine now ... Really appreciate your help. |
Cool working now thanks @ggPixel Do you have any ideas on how to get custom user attributes from Azure Ad such as a workers ID Card code? Thanks, |
Another option that might help someone else is to set the |
Hi @kschroeder I have been trying to solve this issue for a few days now. I am getting the same error as above. I have followed the advice written above and added the return_url but I am still getting the error. I think it has to do with the fact that I do not have a Client Secret available. Is the Client Secret necessary for this to work? I am also not using the "common" directory and am using my organization's tenant ID.
Thanks! |
@lamplmatt Yes, I believe the secret is necessary. |
the redirect URL must be the same, as the one that you set up in the Azure backend. |
Just try this version:
then update your composer with: |
Hi, I need some help still related on this issue. Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_client. |
How I display username that has login on PHP Web app |
Hi,
I ran into the same problem as this issue.
#22 (comment)
I checked, we are not using our own VM, so im assuming I should use the setting
common
.Whats weird is that from Azure's side, the login was successful, so Im not sure what Im doing wrong.
Here's the full error:
Fatal error: Uncaught exception 'League\OAuth2\Client\Provider\Exception\IdentityProviderException' with message 'invalid_client' in /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/vendor/league/oauth2-client/src/Provider/GenericProvider.php:216 Stack trace: #0 /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(644): League\OAuth2\Client\Provider\GenericProvider->checkResponse(Object(GuzzleHttp\Psr7\Response), Array) #1 /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(560): League\OAuth2\Client\Provider\AbstractProvider->getResponse(Object(GuzzleHttp\Psr7\Request)) #2 /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/src/Delegates/Receive.php(82): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken('authorization_c...', Array) #3 /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/src/ActiveDirectory.php(180): Magium\ActiveDirectory\Delegates\Receive->execute() #4 /usr/www/wwws/users/ctutrygdtj in /usr/www/wwws/users/ctutrygdtj/my-portal/inc/sso/vendor/league/oauth2-client/src/Provider/GenericProvider.php on line 216
The text was updated successfully, but these errors were encountered: