2장. Elytron 하위 시스템


2.1. 파일 시스템 기반 ID 저장소로 인증 구성

  1. JBoss EAP에서 filesystem-realm 을 구성합니다.

    /subsystem=elytron/filesystem-realm=exampleFsRealm:add(path=fs-realm-users,relative-to=jboss.server.config.dir)
    Copy to Clipboard Toggle word wrap

    디렉터리가 jboss.server.config.dir 외부에 있는 경우 경로상대 값을 적절하게 변경해야 합니다.

  2. 사용자 추가:

    filesystem-realm 을 사용하는 경우 관리 CLI를 사용하여 사용자를 추가할 수 있습니다.

    /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity(identity=user1)
    /subsystem=elytron/filesystem-realm=exampleFsRealm:set-password(identity=user1, clear={password="password123"})
    /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity-attribute(identity=user1, name=Roles, value=["Admin","Guest"])
    Copy to Clipboard Toggle word wrap
  3. simple-role-decoder 추가 :

    /subsystem=elytron/simple-role-decoder=from-roles-attribute:add(attribute=Roles)
    Copy to Clipboard Toggle word wrap

    simple-role-decoderRoles 특성에서 주체 역할을 디코딩합니다. 역할이 다른 특성에 있는 경우 이 값을 변경할 수 있습니다.

  4. security-domain 구성 :

    /subsystem=elytron/security-domain=exampleFsSD:add(realms=[{realm=exampleFsRealm,role-decoder=from-roles-attribute}],default-realm=exampleFsRealm,permission-mapper=default-permission-mapper)
    Copy to Clipboard Toggle word wrap
  5. undertow 하위 시스템에서 application-security-domain 을 구성합니다.

    /subsystem=undertow/application-security-domain=exampleApplicationDomain:add(security-domain=exampleFsSD)
    Copy to Clipboard Toggle word wrap
    참고

    undertow 하위 시스템의 application-security-domain구성 하위 시스템 웹(Undertow) 애플리케이션 보안 도메인으로 이동하여 관리 콘솔을 사용하여 구성할 수 있습니다.

  6. 애플리케이션의 web.xmljboss-web.xml 구성 :

    JBoss EAP에서 구성한 application- security -domain을 사용하도록 애플리케이션의 web.xml 및 jboss- web.xml을 업데이트해야 합니다. 이러한 예는 Configure Web Applications to use Elytron 또는 Legacy Security for Authentication 에서 확인할 수 있습니다.

이제 애플리케이션에서 인증에 파일 시스템 기반 ID 저장소를 사용하고 있습니다.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat