Open samjhill opened 7 years ago
Having the same issue, would appreciate some help!
We're working on a new version right now - were there any updates to this by chance? I might try and reproduce it.
I am having a similar issue.
TypeError: League\OAuth1\Client\Server\Server::getTokenCredentials(): Argument #1 ($temporaryCredentials) must be of type League\OAuth1\Client\Credentials\TemporaryCredentials, bool given, defined in /league/oauth1-client/src/Server/Server.php:163
Stack trace:
League\OAuth1\Client\Server\Server->getTokenCredentials(false, 'La9eoAAAAAABGE6...', 'Ss4juqjoP8q9MHd...')
I'm not a professional developer. Does this mean the tokens aren't matching?
This only happens in iOS/Safari. Login works fine in Chrome.
@zerosonesfun your stack trace shows that you're passing false
as the first argument to getTokenCredentials
:
League\OAuth1\Client\Server\Server->getTokenCredentials(false, 'La9eoAAAAAABGE6...', 'Ss4juqjoP8q9MHd...')
^^^
You'll need a developer to debug this further by stepping through your application's code.
https://github.com/thephpleague/oauth1-client/blob/master/src/Client/Server/Server.php#L150
I extended Server for a different provider (SocialFlow.php file below), and after the auth redirect, I am given an OAuth_token, which I store in $_SESSION.
I also serialize and store the temporary_credentials the same way.
Then, I initialize it again, with the signature, for an endpoint run:
The crux of the issue: the temporary_credentials that are given to me from SocialFlow don't have the same ID as the OAuth_token given to me after the auth redirect.
And I still get the warning
Temporary identifier passed back by server does not match that of stored temporary credentials.
.What am I doing wrong?
SocialFlow extends Server.php