geosolutions-it / MapStore

The code of the most recent version of mapstore is hosted as geosolutions-it/MapStore2
https://github.com/geosolutions-it/MapStore2
GNU General Public License v3.0
31 stars 43 forks source link

GeoWeb login via POST parameters inside an iframe #896

Closed mricca closed 8 years ago

mricca commented 8 years ago

This is the html page I used to make tests

<html>
    <head>
        <meta charset="utf-8" />
        <title>he_iframe</title>
    </head>
    <body>
        <form name="frmlogin" method="post" id="frmlogin" action="http://localhost:8081/loginpage" target="he_iframe">
            <input type="hidden" name="username" id="username" value="mricca_advanced" />
            <input type="hidden" name="password" id="password" value="mricca_advanced" />
        </form>
        <iframe
            style="border: none;"
            height="600"
            width="1000"
            name="he_iframe">
        </iframe>        
        <script type="text/javascript">
            document.getElementById('frmlogin').submit();
        </script>
    </body>
</html>```