PHP Classes

Oauth2 revoke

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Oauth2 revoke  >  (Un) Subscribe thread alerts  
Subject:Oauth2 revoke
Summary:Oauth2 revoke
Messages:4
Author:Steve
Date:2015-02-28 14:54:58
 

  1. Oauth2 revoke   Reply   Report abuse  
Picture of Steve Steve - 2015-02-28 14:54:58
How would you log out an oauth user with this class (revoke the token)?

  2. Re: Oauth2 revoke   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-02-28 21:30:15 - In reply to message 1 from Steve
You can call the ResetAccessToken function but that does not revoke the token. It just makes the token be "forgotten" by your application.

It is possible to revoke the tokens on some OAuth API servers. What OAuth API are you using?

  3. Re: Oauth2 revoke   Reply   Report abuse  
Picture of Steve Steve - 2015-03-01 01:46:54 - In reply to message 2 from Manuel Lemos
I have been testing with Google.

  4. Re: Oauth2 revoke   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-03-01 02:07:10 - In reply to message 3 from Steve
Yes, Google supports token revoking. It will be supported in the class soon. I will post here when it is available.