0

2つのアプリケーションがあり、それぞれが独自のサーバーにあります。どちらも、標準設定でSpringセキュリティを使用しています。2番目のアプリケーションを介して最初のアプリケーションにアクセスする必要があるという問題。2番目のアプリケーションにログインするときに、パスワードを送信して最初のアプリケーションにログインする必要があります。誰かがサンプルやヒントを手伝ってもらえますか?ありがとうございました。両方のアプリケーションでの私のspring-security.xml:

<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/security 
    http://www.springframework.org/schema/security/spring-security-3.1.xsd">

<http pattern="/favicon.ico" security="none" />

<http auto-config="true">
    <intercept-url pattern="/**" access="ROLE_ADMIN"/>
</http>

<authentication-manager>
    <authentication-provider>
        <user-service>
            <user name="hey" password="there" authorities="ROLE_ADMIN" />
        </user-service>
    </authentication-provider>
</authentication-manager>

4

1 に答える 1

2

これには、アプリケーションにアクセスしたり、ユーザー/パスを渡そうとするのではなく、CASを使用する必要があります。

この種のシナリオでCASを使用する方法を理解するには、このリンクを参照してください。

于 2012-07-24T09:49:19.000 に答える