<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi again,<br>
<br>
I managed to solve my issue after reading this article<br>
<a href="http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/" target="_blank">http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/</a>
<br>
<br>
Thanks!<br>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF322916" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> geonode-users [geonode-users-bounces@lists.osgeo.org] on behalf of Stefano.LUONI@ext.ec.europa.eu [Stefano.LUONI@ext.ec.europa.eu]<br>
<b>Sent:</b> 30 November 2017 17:21<br>
<b>To:</b> geonode-users@lists.osgeo.org<br>
<b>Subject:</b> [GeoNode-users] Geonode auth for Geoserver<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi everyone,<br>
<br>
I need some clarifications about configuring oAuth for synchronizing Geonode and Geoserver login.<br>
<br>
I followed steps described here: <a href="http://training.geonode.geo-solutions.it/002_install_and_admin/002_geonode_install/install_geoserver_application.html#setup-geoserver" target="_blank">
http://training.geonode.geo-solutions.it/002_install_and_admin/002_geonode_install/install_geoserver_application.html#setup-geoserver</a>
<br>
<br>
I'm browsing the website from remote, because the machine it's an Ubuntu Server one and has to host a public website.<br>
<br>
Setting everything as described in the guide, the authentication fails because the browser is unable to connect to localhost.<br>
If I replace "localhost" with my site url, I get the error: <br>
<br>
<b>Error: invalid_request - Mismatching redirect URI.<br>
<br>
</b>I tried using both <a href="http://localhost" target="_blank">http://localhost</a> and
<a href="http://mywebsiteurl.com" target="_blank">http://mywebsiteurl.com</a> as SITEURL in local_settings.py with the same result.<br>
<b><br>
</b>My machine is Ubuntu 16.04 on which was performed a custom installation of Geonode (<a href="http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html#custom-install" target="_blank">http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html#custom-install</a>).<br>
<br>
Can you help me?<br>
<br>
Thank you very much,<br>
<br>
Stefano<br>
</div>
</div>
</div>
</div>
</body>
</html>