如何启用 CAS 仪表板(“/status/dashboard”端点)
How can I enable CAS Dashboard ("/status/dashboard" endpoint)
我正在尝试自定义我当前的 CAS WAR 覆盖。更具体地说,我需要访问仪表板(或者我可以做一些更改的东西,也许至少更改默认用户密码)。
CAS 文档是一个很好的来源,但我发现它对初学者来说太难了,特别是如果你之前没有使用过 spring 引导。
到目前为止,我使用 Gradle 全新安装了 CAS 5.2 版,并在 Tomcat 9.0 本地主机上部署了 .war 文件。 SSL 已启用。注意:带有 Gradle 的部分和 Maven 依赖项是明确的。
目前我只能使用 casuser//Mellon 默认凭据登录。我可以看到诸如仪表板之类的链接...但是当我尝试导航到那里时,我被告知我需要获得权限才能查看该页面。
下面是位于 cas.properties 文件的内容:
[cas-overlay-root]/etc/cas/config/cas.properties
到目前为止,这是我编辑的唯一内容。
# 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 覆盖和启用链接的任何信息,我们将不胜感激。
也许其他人会觉得这很有用,所以这些设置对我有用。它们对于测试本地配置非常有用,因为它们不安全,因此不应在生产中使用。
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 属性是一个正则表达式。
我正在尝试自定义我当前的 CAS WAR 覆盖。更具体地说,我需要访问仪表板(或者我可以做一些更改的东西,也许至少更改默认用户密码)。 CAS 文档是一个很好的来源,但我发现它对初学者来说太难了,特别是如果你之前没有使用过 spring 引导。
到目前为止,我使用 Gradle 全新安装了 CAS 5.2 版,并在 Tomcat 9.0 本地主机上部署了 .war 文件。 SSL 已启用。注意:带有 Gradle 的部分和 Maven 依赖项是明确的。
目前我只能使用 casuser//Mellon 默认凭据登录。我可以看到诸如仪表板之类的链接...但是当我尝试导航到那里时,我被告知我需要获得权限才能查看该页面。 下面是位于 cas.properties 文件的内容:
[cas-overlay-root]/etc/cas/config/cas.properties到目前为止,这是我编辑的唯一内容。
# 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 覆盖和启用链接的任何信息,我们将不胜感激。
也许其他人会觉得这很有用,所以这些设置对我有用。它们对于测试本地配置非常有用,因为它们不安全,因此不应在生产中使用。
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 属性是一个正则表达式。