So here at the end of the page says a way to be able to revoke this token via the AuthSub api (the old api). I manage the whole authentication system with the new api OAuth and when I try to revoke the token with the authsub steps its just sending me an “HTTP Error [...]

Autor:

So here at the end of the page says a way to be able to revoke this token via the AuthSub api (the old api).

I manage the whole authentication system with the new api OAuth and when I try to revoke the token with the authsub steps its just sending me an “HTTP Error 403: Invalid AuthSub token.”

Here is my code in python:

req = urllib2.Request("https://www.google.com/accounts/AuthSubRevokeToken",headers=
      {'Authorization':'AuthSub token="mysuperloluselesstoken"'})
urllib2.open(req)

Is there an easier way to do this? Should I do something with the secret_token + user_token + consumer?

Related posts:

  1. Google OAuth problem: invalid_signature
  2. Google OAuth problem: invalid_signature
  3. oauth , python and google API?
  4. Getting started with Google API and oAuth
  5. Google OAuth via Zend Framework – Detect Denied Access

Comments on this entry (no comments)

Did you like this post? You can share your opinion with us! Simply click here.

Add Your Comment