<div dir="ltr">Hello Eric,<div><br></div><div>the REST endpoints should be protected by default and accessible only through internal GeoServer admin user (which is different from GeoNode one; you can find it's credentials inside the "local_settings.py")</div><div><br></div><div>e.g. using CURL you would need to query the REST endpoints as curl -u admin:***** ...</div><div><br></div><div>The other errors are quite strange and currently I cannot say the cause without further details.</div><div><br></div><div>If you started from an old GeoServer DATA DIR (2.7 maybe) you might need to do some changes manually in order to fix some issues with the Authentication Providers.</div><div><br></div><div>Please, read carefully this guide</div><div><br></div><div><a href="http://docs.geonode.org/en/latest/tutorials/admin/geoserver_geonode_security/index.html">http://docs.geonode.org/en/latest/tutorials/admin/geoserver_geonode_security/index.html</a><br></div><div><br></div><div>which explains in details how GeoNode and GeoServer security interacts and how should be correctly configured.</div><div><br></div><div>Let me know if you still have issues and, in that case, let's try to throubleshoot them somehow.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><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"><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"><a href="https://github.com/afabiani?tab=overview" style="font-size:12.8px" target="_blank">github</a><br></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: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39 <span style="font-size:12.8px">331 6233686</span></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/geosolutions_it</a></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">-------------------------------------------------------</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">---------------------------------------------------------------------</font></p></div></div></div></div>
<br><div class="gmail_quote">On Fri, Apr 14, 2017 at 9:13 PM, Eric Goddard <span dir="ltr"><<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Alessio, using the geonode button does work now. I missed that<br>
addition and was expecting it to work the same as in 2.4.<br>
<br>
I can authenticate with Geoserver now, however when trying to upload a<br>
layer through geonode it throws an error:<br>
<br>
(actual url replaced since it isn't ready yet)<br>
<br>
Tried to make a GET request to<br>
<a href="https://geonode.example.com/geoserver/rest/workspaces/default.xml" rel="noreferrer" target="_blank">https://geonode.example.com/<wbr>geoserver/rest/workspaces/<wbr>default.xml</a> but<br>
got a 404 status code:<br>
<br>
trying to access the rest endpoints directly gives an error message,<br>
both over http and https so I don't think it is from the nginx/lets<br>
encrypt config. However, When I'm in the geoserver admin,<br>
clicking on any of the sidebar links such as Geoserver logs adds an<br>
extra https// in the link: Even though hovering over the link displays<br>
the correct link in the browser status bar, when you click on it I get<br>
<a href="https://https//geonode.example.com/geoserver/web/wicket/bookmarkable/org.geoserver.web.admin.StatusPage?8" rel="noreferrer" target="_blank">https://https//geonode.<wbr>example.com/geoserver/web/<wbr>wicket/bookmarkable/org.<wbr>geoserver.web.admin.<wbr>StatusPage?8</a><br>
<br>
Thanks again,<br>
Eric<br>
<br>
On Fri, Apr 14, 2017 at 4:01 AM, Alessio Fabiani<br>
<<a href="mailto:alessio.fabiani@geo-solutions.it">alessio.fabiani@geo-<wbr>solutions.it</a>> wrote:<br>
> It is normal.<br>
><br>
> If you are using OAtuh2, the GeoServer Admin GUI won't be automatically<br>
> logged. You need to authenticate through geonode icon or geoserver<br>
> credentials.<br>
><br>
> This is different for access to the layers. GeoNode generates an<br>
> authentication token which is used to keep authentication.<br>
><br>
> Alternatively you can get this token from session and use it to be<br>
> automatically authetnicated on GeoServer Admin GUI too.<br>
><br>
><br>
> Best Regards,<br>
> Alessio Fabiani.<br>
><br>
> ==<br>
> GeoServer Professional Services from the experts!<br>
> Visit <a href="http://goo.gl/it488V" rel="noreferrer" target="_blank">http://goo.gl/it488V</a> for more information.<br>
> ==<br>
><br>
> Ing. Alessio Fabiani<br>
> @alfa7691<br>
> github<br>
> Founder/Technical Lead<br>
><br>
> GeoSolutions S.A.S.<br>
> Via di Montramito 3/A<br>
> 55054 Massarosa (LU)<br>
> Italy<br>
> phone: <a href="tel:%2B39%200584%20962313" value="+390584962313">+39 0584 962313</a><br>
> fax: <a href="tel:%2B39%200584%201660272" value="+3905841660272">+39 0584 1660272</a><br>
> mob: <a href="tel:%2B39%20331%206233686" value="+393316233686">+39 331 6233686</a><br>
><br>
> <a href="http://www.geo-solutions.it" rel="noreferrer" target="_blank">http://www.geo-solutions.it</a><br>
> <a href="http://twitter.com/geosolutions_it" rel="noreferrer" target="_blank">http://twitter.com/<wbr>geosolutions_it</a><br>
><br>
> ------------------------------<wbr>-------------------------<br>
><br>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br>
><br>
> Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i<br>
> file/s allegato/i sono da considerarsi strettamente riservate. Il loro<br>
> utilizzo è consentito esclusivamente al destinatario del messaggio, per le<br>
> finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio<br>
> senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia<br>
> via e-mail e di procedere alla distruzione del messaggio stesso,<br>
> cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo<br>
> anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per<br>
> finalità diverse, costituisce comportamento contrario ai principi dettati<br>
> dal D.Lgs. 196/2003.<br>
><br>
><br>
><br>
> The information in this message and/or attachments, is intended solely for<br>
> the attention and use of the named addressee(s) and may be confidential or<br>
> proprietary in nature or covered by the provisions of privacy act<br>
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection<br>
> Code).Any use not in accord with its purpose, any disclosure, reproduction,<br>
> copying, distribution, or either dissemination, either whole or partial, is<br>
> strictly forbidden except previous formal approval of the named<br>
> addressee(s). If you are not the intended recipient, please contact<br>
> immediately the sender by telephone, fax or e-mail and delete the<br>
> information in this message that has been received in error. The sender does<br>
> not give any warranty or accept liability as the content, accuracy or<br>
> completeness of sent messages and accepts no responsibility for changes<br>
> made after they were sent or for other risks which arise as a result of<br>
> e-mail transmission, viruses, etc.<br>
><br>
> ------------------------------<wbr>------------------------------<wbr>---------<br>
><br>
><br>
> On Thu, Apr 13, 2017 at 10:35 PM, Eric Goddard <<a href="mailto:egoddard1010@gmail.com">egoddard1010@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I'm running Geonode 2.6c1 on Ubuntu 16.04 installed using Ansible<br>
>> (with geoserver-2.9.x-oauth2). My geonode instance is served over<br>
>> https with a LetsEncrypt certificate.<br>
>><br>
>> After enabling ssl, I've gone through and changed the URLS for geonode<br>
>> and geoserver everywhere that I can think of so that it uses the https<br>
>> endpoint:<br>
>><br>
>> /var/lib/tomcat8/webapps/<wbr>geoserver/data/security/role/<wbr>geonode REST<br>
>> role service/config.xml<br>
>><br>
>> /var/lib/tomcat8/webapps/<wbr>geoserver/data/security/auth/<wbr>geonodeAuthProvider/config.xml<br>
>><br>
>> /var/lib/tomcat8/webapps/<wbr>geoserver/data/security/<wbr>filter/geonode-oauth2/config.<wbr>xml<br>
>> /var/lib/tomcat8/webapps/<wbr>geoserver/data/global.xml<br>
>><br>
>> GEOSERVER_LOCATION in local_settings.py has also been updated to the<br>
>> https endpoint.<br>
>><br>
>> I also changed the redirect uris in the GeoServer application entry in<br>
>> the geonode admin panel under Django Oauth2 Toolkit > GeoServer to the<br>
>> https endpoint.<br>
>><br>
>><br>
>> The geoserver log after attempting to access geoserver from the logged<br>
>> in admin account:<br>
>><br>
>> 2017-04-13 15:13:14,757 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Checking match of request : 'Path: /, QueryString: null'; against<br>
>> '/web/**'<br>
>> 2017-04-13 15:13:14,757 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Checking match of request : 'Path: /, QueryString: null'; against<br>
>> '/gwc/rest/web/**'<br>
>> 2017-04-13 15:13:14,757 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Checking match of request : 'Path: /, QueryString: null'; against '/'<br>
>> 2017-04-13 15:13:14,758 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Matched Path: /, QueryString: null with /<br>
>> 2017-04-13 15:13:14,758 DEBUG [org.geoserver.security] - Inspecting<br>
>> the http request looking for the GeoNode Session ID.<br>
>> 2017-04-13 15:13:14,758 DEBUG [org.geoserver.security] - Found 9 cookies!<br>
>> 2017-04-13 15:13:14,759 DEBUG [org.geoserver.security] - Found GeoNode<br>
>> cookie: fgalnbhxuf3ynqazgs3bfm0uqqkk71<wbr>l0<br>
>> 2017-04-13 15:13:14,761 DEBUG [org.geoserver.security] -<br>
>> preAuthenticatedPrincipal = null, trying to authenticate<br>
>> 2017-04-13 15:13:14,768 TRACE [org.geoserver.ows.<wbr>OWSHandlerMapping] -<br>
>> No handler mapping found for [/]<br>
>> 2017-04-13 15:13:14,769 DEBUG<br>
>><br>
>> [org.geoserver.security.<wbr>filter.<wbr>GeoServerSecurityContextPersis<wbr>tenceFilter$1]<br>
>> - SecurityContextHolder now cleared, as request processing completed<br>
>> 2017-04-13 15:13:14,944 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Checking match of request : 'Path: /web/, QueryString: null'; against<br>
>> '/web/**'<br>
>> 2017-04-13 15:13:14,944 DEBUG<br>
>> [org.geoserver.security.<wbr>IncludeQueryStringAntPathReque<wbr>stMatcher] -<br>
>> Matched Path: /web/, QueryString: null with /web/**<br>
>> 2017-04-13 15:13:14,944 DEBUG [org.geoserver.security] - Inspecting<br>
>> the http request looking for the GeoNode Session ID.<br>
>> 2017-04-13 15:13:14,944 DEBUG [org.geoserver.security] - Found 9 cookies!<br>
>> 2017-04-13 15:13:14,945 DEBUG [org.geoserver.security] - Found GeoNode<br>
>> cookie: fgalnbhxuf3ynqazgs3bfm0uqqkk71<wbr>l0<br>
>> 2017-04-13 15:13:14,946 DEBUG [org.geoserver.security] -<br>
>> preAuthenticatedPrincipal = null, trying to authenticate<br>
>> 2017-04-13 15:13:14,953 TRACE [org.geoserver.ows.<wbr>OWSHandlerMapping] -<br>
>> No handler mapping found for [/web/]<br>
>> 2017-04-13 15:13:15,021 DEBUG [org.geoserver.filters] - Compressing<br>
>> output for mimetype: text/html;charset=UTF-8<br>
>> 2017-04-13 15:13:15,028 DEBUG<br>
>><br>
>> [org.geoserver.security.<wbr>filter.<wbr>GeoServerSecurityContextPersis<wbr>tenceFilter$1]<br>
>> - SecurityContextHolder now cleared, as request processing completed<br>
>><br>
>><br>
>> I'm not really sure where go from here with troubleshooting, so any<br>
>> help is greatly appreciated. I've tried to include everything that<br>
>> that would be relevant to this issue, but if there is some other<br>
>> information that's needed please let me know.<br>
>><br>
>> Thanks!<br>
>><br>
>> Eric<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="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
><br>
><br>
</blockquote></div><br></div>