<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 4:12 AM, bianghouse <span dir="ltr">&lt;<a href="mailto:bianghouse@yahoo.it" target="_blank">bianghouse@yahoo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, I&#39;d like to know if there&#39;s a way to perform a logout or revoke access<br>
from socialproviders.<br>
I&#39;m currently using Android Authorization (OAuth2) to connect my app to<br>
social-platforms.<br>
Taking a look at AuthzModule interface it declares the following methods<br>
<br>
 public boolean isAuthorized();<br>
public boolean hasCredentials();<br>
 public void requestAccess(Activity activity, Callback&lt;String&gt; callback);<br>
 public boolean refreshAccess();<br>
public void deleteAccount();<br>
<br>
I tried with deleteAcccount() method with no luck, when I try to login with<br>
a new login user  no OAuthWebViewDialog appears and my app redirects to<br>
succeeded login with the old credentials.<br>
<br></blockquote><div><br></div><div>The answer is &quot;its complicated&quot;.  `deleteAccount` removes the account information from what Aerogear knows about, but your WebView or web browser (if you use an intent) may still know about your authorizations.  When we request from the WebView/Browser a token it will use its cached credentials to log in and fetch the token.</div><div><br></div><div>You can confirm that you are logged out by trying to make a call using your pipe.  You should get a failure.</div><div><br></div><div>It looks like we could, as part of delete account with the webview AuthzModule clear the cookies.  </div><div><br></div><div>I&#39;ve created a issue to track this here : <a href="https://issues.jboss.org/browse/AGDROID-521">https://issues.jboss.org/browse/AGDROID-521</a></div><div><br></div><div>Also you can clear the cookies manually if you are using a webview : <a href="http://stackoverflow.com/questions/28998241/how-to-clear-cookies-and-cache-of-webview-on-android-when-not-in-webview">http://stackoverflow.com/questions/28998241/how-to-clear-cookies-and-cache-of-webview-on-android-when-not-in-webview</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thanks in advance.<br>
M.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Android-oauth2-logout-from-Facebook-Google-tp12348.html" rel="noreferrer" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-oauth2-logout-from-Facebook-Google-tp12348.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div></div>