dcblogdev / laravel-microsoft-graph

Laravel package for Microsoft Graph API (Microsoft365)
https://dcblog.dev/docs/laravel-microsoft-graph
Other
120 stars 51 forks source link

error:invalid_client #34

Closed AnthonyScorch closed 1 year ago

AnthonyScorch commented 1 year ago

Having followed the installation and graph application setup a few times now, I am constantly getting the error error:invalid_client after being redirected back to the /connect endpoint post sign-in. I have checked al of the details several times and have created a few different secrets but always recieve the same error, does this package still work with the current graph API?

dcblogdev commented 1 year ago

invalid_client must match your client_id field

so MSGRAPH_CLIENT_ID should match what you have in your tenancy

CleanShot 2022-09-03 at 11 44 07@2x
AnthonyScorch commented 1 year ago

Thanks David, I still cant get it to return anything other than that error but now I know it is on the azure side if the integration is still functional, yes I did use that value from within the azure portal.

AnthonyScorch commented 1 year ago

Got it, the config file is written but not updated within the cache directory, Quite why cache:clear hadnt sorted it I am not sure but manually changing the config.php file has fixed it.