<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 8, 2017 at 11:42 AM, Tom Jackman <span dir="ltr"><<a href="mailto:tjackman@redhat.com" target="_blank">tjackman@redhat.com</a>></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">Hi Summers,<div><br></div><div>Nice demo. One question, where are the tokens being stored, is it in the webview of the authenticator app or in the Android account manager?</div><div><br></div></div></blockquote><div><br></div><div>The webview is storing a session cookie.  This cookie is not exposed by the app.</div><div>The token is stored in the Android Account manager, but it is accessed through the KeyCloakAccountAuthenticator class.  KeyCloakAccountAuthenticator loads, stores, validates, and updates data stored in the account manager.  </div><div><br></div><div>See <a href="https://github.com/secondsun/keycloak-android-authenticator/blob/master/app/src/main/java/org/keycloak/keycloakaccountprovider/KeyCloakAccountAuthenticator.java#L66">https://github.com/secondsun/keycloak-android-authenticator/blob/master/app/src/main/java/org/keycloak/keycloakaccountprovider/KeyCloakAccountAuthenticator.java#L66</a>.</div><div><br></div><div><br></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 dir="ltr"><div></div><div>Thanks,</div><div><br></div><div>Tom.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_7572714132192781075gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="font-size:14px;color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;text-transform:uppercase">TOM JACKMAN</p><p style="font-family:overpass,sans-serif;margin:0px;padding:0px;text-transform:uppercase"><font color="#666666" size="1">Red Hat Mobile</font></p><table border="0" style="font-size:medium;color:rgb(0,0,0);font-family:overpass,sans-serif"><tbody><tr><td width="100px"><a href="https://red.ht/sig" style="color:rgb(17,85,204);outline-width:0px" target="_blank"><img width="90" height="auto"></a></td><td style="font-size:10px"><a href="https://redhat.com/trusted" style="color:rgb(204,0,0);font-weight:bold" target="_blank">TRIED. TESTED. TRUSTED.</a></td></tr></tbody></table><div style="font-size:10px;color:rgb(0,0,0);font-family:overpass,sans-serif"><div style="color:rgb(153,153,153)"><br></div></div></div></div></div></div></div></div></div></div></div></div><div style="margin:2px 0px 0px;font-size:12.8px"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="gmail-h5">On Fri, Sep 8, 2017 at 3:26 PM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></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-h5"><div dir="ltr"><div>A few years ago I made this demo, but I've dusted the bit rot off and updated it for 2017.</div><div><br></div><a href="https://bluejeans.com/s/y5F5m" target="_blank">https://bluejeans.com/s/y5F5m</a><br><div><br></div><div>This demo shows how a single app or library can share a login token with multiple apps in Android.  In this case I've create a KeyCloak authentication provider which is shared with two demo applications.</div><div><br></div><div>After the demo part of the video we discuss some future things that can be done to make it better and other opportunities of extended functionality on Android as well as possible implementations on other platforms (specifically Gnome, Windows, and iOS).</div><div><br></div><div>Sources : </div><div> * Provider : <a href="https://github.com/secondsun/keycloak-android-authenticator" target="_blank">https://github.com/secondsun<wbr>/keycloak-android-authenticato<wbr>r</a></div><div> * Token Demo : <a href="https://github.com/secondsun/keycloak-account-authenticator-demo" target="_blank">https://github.com/secondsun<wbr>/keycloak-account-authenticato<wbr>r-demo</a></div><div> * Rest Demo : <a href="https://github.com/secondsun/authz-tests/tree/authenticator" target="_blank">https://github.com/secondsun<wbr>/authz-tests/tree/authenticato<wbr>r</a></div><div><br></div><div>Note : The sources are a bit hardcoded for my machine.</div></div>
<br></div></div>______________________________<wbr>_________________<br>
feedhenry-dev mailing list<br>
<a href="mailto:feedhenry-dev@redhat.com" target="_blank">feedhenry-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/feedhenry-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/feedhenry-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>