<p dir="ltr">This is great news! Would be great to play with a test deployment once the basic functionality is there.</p>
<p dir="ltr">Thanks for working on this Alessio.</p>
<p dir="ltr">-a</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 30, 2016 6:08 AM, "Alessio Fabiani" <<a href="mailto:alessio.fabiani@geo-solutions.it">alessio.fabiani@geo-solutions.it</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div>working on a refactoring of the GeoNode-GeoServer Auth subsystem, the idea would be to use the OAuth2 Protocol to allow GeoServer grab the Authorizations from GeoNode (or from a common OAuth2 Provider).<br></div><div><br></div><div>The first step is to allow GeoServer to authenticate through the OAuth2 Protocol.</div><div><br></div><div>I just finished (almost) a new GeoServer extension allowing users to do that.</div><div><br></div><div><div>Here [1] you can find a community module allowing GeoServer to authenticate through the OAuth2 protocol.</div><div><br></div><div>The basic "oauth2" module contains the general infrastructure.</div><div><br></div><div>The "oauth2-google" module is an extension showing how is possible to use Google OAuth2 Provider to authenticate and validate the "access_token".</div><div><br></div><div>Moreover the Security Filter also "simulates" an SSO based on OAuth2 by injecting a provided "access_token" (which is then validated against the configured OAuth2 Provider) similar to the GeoServer "AuthKey" module.</div><div><br></div><div>How the OAuth2 Filter works</div><div>=====================</div><div><br></div><div>1. The GeoServer GUI allows to configure the OAuth2 Service connection parameters and select the GeoServer UserRoleService to use</div><div><br></div><div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=78ecb247f8&view=att&th=156db1be49eaf830&attid=0.1&disp=safe&realattid=ii_ishd502e0_156db1be515ee0b7&zw" width="544" height="357"><br>​</div><div><br></div><div>2. The new filter may be added to the standard GeoServer Filter Chain</div><div><br></div><div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=78ecb247f8&view=att&th=156db1ca27373c58&attid=0.2&disp=safe&realattid=ii_ishd61nw1_156db1ca25e3586e&zw" width="544" height="367"><br>​<br></div><div>3. If not authenticated, GeoServer redirects the user automatically to the Google Login Page</div><div><br></div><div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=78ecb247f8&view=att&th=156db1d5d7e85633&attid=0.3&disp=safe&realattid=ii_ishd72672_156db1d5ca26c8e0&zw" width="455" height="544"><br>​4. The OAuth2 Protocol asks for Authorizations<br></div><div><br></div><div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=78ecb247f8&view=att&th=156db1dcbfa8ff93&attid=0.4&disp=safe&realattid=ii_ishd7o433_156db1dcb42afa76&zw" width="544" height="316"><br>​5. Accepting the authorization, the user is redirected to the GeoServer endpoint<br></div><div><br></div><div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=78ecb247f8&view=att&th=156db1e8adae0eb6&attid=0.5&disp=safe&realattid=ii_ishd8ptl4_156db1e8b8cb243c&zw" width="544" height="254"><br>​<br></div><div><br clear="all"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Best Regards,</div><div style="font-size:12.8px">Alessio Fabiani.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">[1] - <a href="https://github.com/geosolutions-it/geoserver/tree/oauth2-filter" target="_blank">https://github.com/<wbr>geosolutions-it/geoserver/<wbr>tree/oauth2-filter</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>==</div><div>GeoServer Professional Services from the experts!</div><div>Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div>==</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Ing. Alessio Fabiani</div><div style="font-size:12.8px">@alfa7691</div><div style="font-size:12.8px">Founder/Technical Lead</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>GeoSolutions S.A.S.</div><div>Via di Montramito 3/A</div><div>55054  Massarosa (LU)</div><div>Italy</div><div>phone: <a href="tel:%2B39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a></div><div>fax:     <a href="tel:%2B39%200584%201660272" value="+3905841660272" target="_blank">+39 0584 1660272</a></div><div>mob:   <a href="tel:%2B39%20331%206233686" value="+393316233686" target="_blank">+39 331 6233686</a></div><div><br></div><div><a href="http://www.geo-solutions.it/" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/<wbr>geosolutions_it</a></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">------------------------------<wbr>-------------------------</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></p><p><font size="1">------------------------------<wbr>------------------------------<wbr>---------</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div></div>