Dear indian and christian, I'm very beginner in suite SDK and IT, and i try to build an application using opengeo suite SDK and geoserver. I follow all instructions in this tutorial link http://suite.opengeo.org/docs/apps/clientsdk.html. But my application hasn't data protection such as authenticate or login button, i read this forum, i think there's some relation between this forum and my issue. May you explain to authenticate the geoserver from the application step by step? i confused where should i insert ajax configuration script and the other scripts.
Big thanks for your responses, Regards, Deli indian.ganesh wrote > hello everyone, > > here i am building an application using opengeo > suite sdk and geoserver. using opengeo suite sdk viewer i want to > edit/create features and styles in geoserver . > > for that i am trying to authenticate the geoserver from my application . > for that i am making an ajax call as follows > > > var username = 'admin'; > var password = 'geoserver'; > var tok = username + ':' + password; > var auth = "Basic "+ Base64.encode(tok); > var url = 'http://localhost:8080/geoserver/j_spring_security_check'; > Ext.Ajax.request({ > url : url, > method : 'POST', > headers : { Authorization : auth }, > params: { > username: username+'', > password: password+'' > }, > success: function(response){ > console.log(response); > alert("login successful"); > }, > failure: function(response) { > console.log(response); > alert("login incorrect"); > } > }); > > after firing this ajax request i get response as shown in the snapshot > attached.. > > in this snapshot it looks like the page is requesting geoserver web > administration interface console .. > i just want to get authenticated to geoserver without page redirection... > > any help will be appreciated.. > > thanks in advance > > ------------------------------------------------------------------------------ > How fast is your code? > 3 out of 4 devs don\\\'t know how their code performs in production. > Find out how slow your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219672;13503038;z? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > snapshot1.png (74K) > <http://osgeo-org.1560.x6.nabble.com/attachment/5002075/0/snapshot1.png> -- View this message in context: http://osgeo-org.1560.x6.nabble.com/authentication-to-geoserver-in-opengeo-suite-sdk-viewer-tp5002075p5084729.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
