Hello all,
I'm trying to achieve geoserver authentication through a webpage so that i
can load secured layers into an openlayers app, but untill the moment i was
not able to do that.
I've tried the basic http authentication
(http://user:pass@loacalhost:8080/geoserver/wms)
but this approach will always show me a form to enter the user and
password. I alreadey have an authentication interface before showing the
map. On a successful auth the server sends back the geoserver user and
corresponding password.
So i just need to use the response to login to geoserver.
Using the hints from
http://getsatisfaction.com/opengeo/topics/auth_in_geoserver_with_html_php_js i
have tried the following:
Ext.Ajax.request({
url: 'http://localhost:8080/geoserver/j_spring_security_check?',
method: 'POST',
scriptTag: true,
params: {
username: geoserverUser,
password: geoserverPass
},
success: function(){do stuff...}
});
Nevertheless, the form is still popping out to introduce the user and
password, although i get a sucessfull post request.
Any hints on how to solve this? As of my understanding of Tim's explanation
(on the link provided above) that should be it, but...
Thanks in advance.
Kind regards,
Hugo
--
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users