<div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 27, 2017 at 3:07 PM, Mitja Jesenicnik Kotnik <span dir="ltr">&lt;<a href="mailto:mitja.kotnik@cloud.si" target="_blank">mitja.kotnik@cloud.si</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yes, I was able to do that. But the WebView still saved the Cookies for that session, so I had to also delete the Cookies from WebView in Android so that the next time it asked me for the password again. </div></blockquote><div><br></div><div>If you are authenticating against Google&#39;s OAuth you don&#39;t want to use the WebView.</div><div><br></div><div>You might want to give : <a href="https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html">https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html</a> a look.</div><div><br></div><div>To make AGDroid Authz use the system browser instead of the WebView you can set withIntent(true) on the configuration.</div><div><br></div><div>A special note about OAuth 2 and logging out, AGDroid will remove your session locally in the app, but the OAuth 2 spec does not provide a mechanism for logging you out of the server component.  Because it implements OAuth 2, the library can&#39;t support the behavior you are trying to do.  </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 27, 2017 at 2:58 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">We don&#39;t have an explicit logout method, but you should be able to delete the session using AuthzModule.deleteAccount().</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_802671947966634446h5">On Mon, Mar 27, 2017 at 5:11 AM, Mitja Jesenicnik Kotnik <span dir="ltr">&lt;<a href="mailto:mitja.kotnik@cloud.si" target="_blank">mitja.kotnik@cloud.si</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_802671947966634446h5"><div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I&#39;m using AeroGear to connect to a Keycloak server and retrieve data. When I tried it for the first time it opened a WebView and promted me to enter my password and username. Then when it was succesful I opened MainActivity.<br><br>Now my question is how can I implement the logout functionality, since the app dosen&#39;t ask me again for my credentials (username, password) but just sends a succes and opens MainActivity.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you for your help in advance.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best regards,</div><div style="font-size:12.8px">Mitja</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
<br></blockquote></div><br></div></div>