2012-07-24 4 views
0

두 개의 응용 프로그램이 있습니다. 각 응용 프로그램은 자체 서버에 있습니다. 두 제품 모두 standart 설정으로 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> 

답변

2

대신에 액세스하거나 사용자를 전달/응용 프로그램을 통해 전달하는 노력이를 위해 CAS를 사용해야합니다.

이 종류의 시나리오에서 CAS를 사용하는 방법을 이해하려면 link을 참조하십시오.

+0

응답 해 주셔서 감사합니다.하지만이 문제를 해결하는 더 쉬운 방법이있을 수 있습니까? 아니면 스프링 보안이 추가 플러그인을 피하기 위해이 같은 기능을 가지고 있지 않니? 고맙습니다. – me1111

+1

또 다른 옵션은 cookie를 사용하여 하나의 앱에서 auth 세부 정보를 저장하고 다른 앱이 remember-me를 사용하도록 요청할 수 있습니다. –

+0

실수로, 응용 프로그램이 다른 서버에 있다는 것을 잊었습니다. 미안 해요. 아직도 가능 해요? 그리고 CAS가 도울 수 있습니까? – me1111

관련 문제