<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;}</style>
</head>
<body fpstyle="1" ocsi="0">
<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>
</body>
</html>