-
Notifications
You must be signed in to change notification settings - Fork 72
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
Tumblr does not accept oauth_signature when trying to get access token #64
Comments
Heya, are you able to clarify what you're doing with a code sample? |
Sure. To clarify: I'm using Laravel Socialite, which uses League's OAuth1 Client, so here's the code: public function user()
{
if (! $this->hasNecessaryVerifier()) {
throw new InvalidArgumentException('Invalid request. Missing OAuth verifier.');
}
$user = $this->server->getUserDetails($token = $this->getToken());
dd($user);
} Then protected function getToken()
{
$temp = $this->request->getSession()->get('oauth.temp');
return $this->server->getTokenCredentials(
$temp, $this->request->get('oauth_token'), $this->request->get('oauth_verifier')
);
} And |
Are the values of: $temp,
$this->request->get('oauth_token'),
$this->request->get('oauth_verifier') All correct? Obviously it's not easy to know if they're "correct", but do they look suspicious or are any empty? |
You sir, are a genius. |
You’re most welcome :)
|
Signature of the request passes fine when I'm getting the OAuth token, but it fails when I try to get the access token. The error that I get from Tumblr is this:
I tried to Google the error, but the only reasons I found were typos. I verified that I didn't make a mistake, but the error is still there. I appreciate your help!
The text was updated successfully, but these errors were encountered: