Sporadic AADSTS900144 error with Microsoft provider #1395
Unanswered
troccoli-sgr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
From time to time the
Socialite::driver('microsoft')->user()call returns400 Bad Request.I have an invokable controller to sign a user in
I have logged the response body
and the request parameters are:
grant_type,client_id,client_secret,redirect_url, andscope. So, thecodeparameter is indeed missing.Upon some investigation it looks like the provider calls to
user(), which is in fact inSocialiteProviders\Manager\OAuth2\AbstractProvider, makes a call to get the code, line 52, which goes intoLaravel\Socialite\Two\AbstractProvider, line 387, which expects an input parameter calledcode.What is this code that is missing? Why isn't the provider adding it? Can I add it manually? Any help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions