Skip to content
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

Fixed some issues with the demo client #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed some issues with the demo client #2

wants to merge 2 commits into from

Conversation

chrsch
Copy link

@chrsch chrsch commented Sep 6, 2011

Hi,

In the comments on you post http://djpate.com/2011/01/13/how-to-write-a-complete-oauth-provider-in-php5/ I noticed you renamed oauth_verifier to verifier_token. This commit just reflects it in the client example.

Cheers,
Christoph

@djpate
Copy link
Owner

djpate commented Sep 6, 2011

Hey thanks for the PR :)

I added a small note on your commit.

@ajaypatelaj
Copy link

I am using this function for checking nonce

public function checkNonce($provider) {
if ($this->oauth->timestamp > (time() + 5*60))
{
return OAUTH_BAD_TIMESTAMP;
}
elseif ($this->consumer->hasNonce($provider->nonce, $this->oauth->timestamp)) {
return OAUTH_BAD_NONCE;
}
else {
$this->consumer->addNonce($this->oauth->nonce, $this->oauth->timestamp); //Insert a new nonce to the DB
return OAUTH_OK;
}
}
But somehow it not working for older time stem.
It allow to response all the generated token which is older then 5 minutes.
Can you pleas help me what i am doing wrong here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants