로컬 컴퓨터에서 tackering/hacking을 위해 독립 실행 형 CAS 5 인스턴스를 사용하고 있으며이를 Tomcat에 배포 된 독립 실행 형 WAR 파일로 설정하려고합니다. 간단한 파일 기반 인증.CAS 5에서 파일 기반 인증을 사용하는 방법
WAR 오버레이 템플릿 (https://github.com/apereo/cas-overlay-template)부터 시작하여 https://apereo.github.io/cas/5.0.x/installation/Whitelist-Authentication.html#example-password-file에 표시된대로 다음 종속성을 추가했습니다.
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-generic</artifactId>
<version>${cas.version}</version>
</dependency>
나는 다음
src/main/resources
에 다음 내용을 간단한
passwd.txt
파일을 만들었습니다.
bob::bob
alice::alice
마지막으로, 나는 etc/cas/config/cas.properties
에 파일 기반의 속성을 (로 페놀 https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#file-authentication)를 추가했다.
cas.authn.file.filename=classpath:passwd.txt
cas.authn.accept.users=
cas.authn.file.passwordEncoder.type=NONE
cas.authn.file.separator=::
내가 응용 프로그램을 배포
는 응용 프로그램이 시작하지만, 로그인 폼에서 허용되는 유일한 사용자는casuser
/
Mellon
(기본값)입니다. 심지어
cas.authn.policy.any.tryAll=true
파일을
cas.properties
파일에 붙이려고했지만 Alice도 Bob도 인식되지 않습니다.
어딘가 다른가요?이 옵션을 설정해야합니까? 파일 기반 인증을 사용하기 위해해야 할 일이 있습니까?