1

I am using the OpenGeo suite Snapshot 2.2 I have rules in GeoServer that display layers to certain users, and only allow editing to certain layers by certain users. This works fine when using GeoExplorer, the user must login to see the layerrs / edit, but when using the SDK I get no login box, meaning the user stays anonymous which prevents editing.

I read HERE, OpenGeo SDK insturctions that in the gxp.viewer I can add authenticate? Is this what I need to add to bring the login dialogue up? if so how?

1

You'll need to implement something similar to the authenticate method in GeoExplorer in your SDK viewer:

https://github.com/boundlessgeo/suite/blob/master/geoexplorer/app/static/script/app/GeoExplorer/Composer.js#L272:L369

but this depends on some server-side JS pieces as well:

https://github.com/boundlessgeo/suite/blob/master/geoexplorer/app/auth.js

basically it's hitting the GeoServer spring authentication endpoint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.