1

我正在考虑为我的应用程序实现单点登录功能。我正在研究 CAS,由于我是新手,所以我想在这里问它,因为与 CAS 相关的文档不完整或不准确。

Cas 版本 - 4.0.x 我覆盖了 cas-server-webapp 并购买了登录页面。

1) Cas-server-webapp 和 cas-management-webapp 是否应该叠加到一个项目中?(请注意版本是 4.0.x)

2)如果是这样,任何人都可以为管理网络应用程序提供正确的网址吗?是
https://localhost:8443/cas/services/还是 https://localhost:8443/management/。如果是后者,不应该有cas / management吗?

3)您能否指出我实现两者的教程或示例项目。我不清楚 jasig 文档。

我现在的pom

 <build>
    <plugins>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
                <warName>cas</warName>
                <overlays>
                    <overlay>
                        <groupId>org.jasig.cas</groupId>
                        <artifactId>cas-server-webapp</artifactId>
                        <excludes>
                            <exclude>WEB-INF/spring-configuration/log4jConfiguration.xml</exclude>
                        </excludes>
                    </overlay>
                    <overlay>
                      <groupId>org.jasig.cas</groupId>
                        <artifactId>cas-management-webapp</artifactId>
                        <excludes>
                          <exclude>WEB-INF/spring-configuration/log4jConfiguration.xml</exclude>
                        </excludes>
                    </overlay>
                </overlays>
            </configuration>
        </plugin>
    </plugins>
</build>

<dependencies>
    <dependency>
        <groupId>org.jasig.cas</groupId>
        <artifactId>cas-server-webapp</artifactId>
        <version>${cas.version}</version>
        <type>war</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.jasig.cas</groupId>
        <artifactId>cas-server-support-generic</artifactId>
        <version>${cas.version}</version>
        <type>jar</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.jasig.cas</groupId>
        <artifactId>cas-management-webapp</artifactId>
        <version>${cas.version}</version>
        <type>war</type>
        <scope>runtime</scope>
    </dependency>
</dependencies>

<properties>
    <cas.version>4.0.1</cas.version>
</properties>

<repositories>
    <repository>
        <id>ja-sig</id>
        <url>http://oss.sonatype.org/content/repositories/releases/ </url>
    </repository>
</repositories>

这是正确的过程吗?如果我完全错了,请告诉我。

提前致谢

4

1 回答 1

0

这是一个当前的示例项目。https://github.com/leleuj/cas-overlay-demo

构建应用程序后,您应该能够使用 /cas-management 访问 cas 管理应用程序。

于 2015-04-29T11:40:47.817 回答