如何启用CAS仪表板(“/ status / dashboard”端点)

问题描述 投票:0回答:1

我正在尝试自定义我当前的CAS WAR Overlay。更具体地说,我需要访问Dashboard(或者我可以做一些更改的地方,或者至少更改默认用户密码)。 CAS文档是一个很好的来源,但我发现它对于初学者来说是相当的压倒性的,特别是如果你之前没有使用过春季启动。

到目前为止,我使用Gradle重新安装了CAS 5.2版,并在Tomcat 9.0 localhost上部署了.war文件。 SSL已启用。注意:Gradle和Maven依赖项的部分是清楚的。

目前我只能使用casuser // Mellon默认凭据登录。我可以看到Dashboard之类的链接......但是当我尝试在那里导航时,我被告知我需要获得查看该页面的权限。 Bellow是cas.properties文件的内容:

[cas-overlay-root]/etc/cas/config/cas.properties
So far that is the only thing that I edited.

    # server.port = 8443
    cas.server.name: https://localhost:8443
    cas.server.prefix: https://localhost:8443/cas
    cas.adminPagesSecurity.ip=127\.0\.0\.1
    logging.config: file:/etc/cas/config/log4j2.xml
    # cas.serviceRegistry.config.location: classpath:/services
    # SSL
    # server.ssl.enabled=false
    server.ssl.enabled=true
    server.ssl.keyStore=file:/etc/cas/thekeystore
    server.ssl.keyStorePassword=changeit
    server.ssl.keyPassword=changeit
    server.port=8443

任何有关如何自定义CAS Web Overlay以及启用链接的信息都将非常受欢迎。

c# asp.net maven gradle cas
1个回答
1
投票

也许其他人会觉得这很有用,所以这些设置对我有用。它们对于测试本地配置非常有用,因为它们不受保护,因此不应在生产中使用它们。

    endpoints.enabled = true
    endpoints.sensitive = false
    endpoints.actuator.enabled = true
    management.security.enabled = false
    cas.adminPagesSecurity.ip = 127\\.0\\.0\\.1
    cas.adminPagesSecurity.actuatorEndpointsEnabled = true
    cas.monitor.endpoints.enabled = true
    cas.monitor.endpoints.sensitive = false

请注意,ip属性是一个正则表达式。

© www.soinside.com 2019 - 2024. All rights reserved.