1

アプリケーションにシングル サインオン機能を実装することを検討しています。私は CAS を調べていますが、これは初めてなので、CAS に関連するドキュメントが完全または正確ではないため、ここで質問したいと思います。

Cas バージョン - 4.0.x cas-server-webapp をオーバーレイし、ログイン ページを購入しました。

1) Cas-server-webapp と cas-management-webapp を単一のプロジェクトにオーバーレイする必要がありますか?? (バージョンは 4.0.x であることに注意してください)

2)もしそうなら、誰かがmanagement-webappの正しいURLを提供できますか??
https://localhost:8443/cas/services/ですか、それとも https://localhost:8443/management/ですか。後者の場合、cas/management があるべきではありませんか??

3) 両方を実装するチュートリアルまたはサンプル プロジェクトを教えてください。jasig のドキュメントは私にはわかりません。

現在のポンポン

 <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 に答える