简体   繁体   English

如何为我的应用程序使用geoserver的用户管理

[英]How can I use geoserver's user management for my application

I'm developing a gis application with java. 我正在用Java开发一个gis应用程序。 My layers are in geoserver . 我的图层在geoserver中 Layers have different permissions, some layers have public permissions and some of them have private permissions. 层具有不同的权限,某些层具有公共权限,其中一些具有私有权限。 for private layers, Users must log in to my application that my application's users and geoserver 's users are one. 对于私有层,用户必须登录到我的应用程序,该应用程序的用户和geoserver的用户是同一用户。
In the other words, I want to use geoserver 's user management in my application to log in users like geoexplorer . 换句话说,我想在应用程序中使用geoserver的用户管理来登录诸如geoexplorer之类的用户。

How do I implement this issue? 如何解决这个问题? How do users login to my application and can read geoserver's layers directly? 用户如何登录到我的应用程序并可以直接读取geoserver的图层?

Geoserver has CAS plugin , you should enable CAS for geoserver and implement CAS client in your application for SSO, then each application can use current user for authorization purpose, geoserver automatically do that. Geoserver具有CAS插件,您应该为geoserver启用CAS并在应用程序中为SSO实施CAS客户端,然后每个应用程序都可以使用当前用户进行授权,geoserver会自动执行此操作。

Useful links: http://www.geo-solutions.it/blog/geoserver-and-cas/ http://docs.geoserver.org/latest/en/user/security/tutorials/cas/index.html 有用的链接: http : //www.geo-solutions.it/blog/geoserver-and-cas/ http://docs.geoserver.org/latest/en/user/security/tutorials/cas/index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM