AEM Forms는 사용자 관리에 아직 존재하지 않는 사용자의 적시 프로비저닝을 지원합니다. 적시 프로비저닝을 사용하면 자격 증명이 성공적으로 인증되면 사용자가 사용자 관리에 자동으로 추가됩니다. 또한 관련 역할 및 그룹이 새 사용자에게 동적으로 할당됩니다.
기존 인증이 작동하는 방식입니다.
사용자가 AEM Forms에 로그인하려고 하면 사용자 관리에서 사용자의 자격 증명을 사용 가능한 모든 인증 공급자에 순차적으로 전달합니다. 로그인 자격 증명에는 사용자 이름/암호 조합, Kerberos 티켓, PKCS7 서명 등이 포함됩니다.
인증 공급자가 자격 증명을 확인합니다.
그런 다음 인증 공급자가 사용자가 User Management 데이터베이스에 있는지 확인합니다. 다음 결과가 가능합니다.
존재함: 사용자가 현재 잠금이 해제되어 있고, 사용자 관리에서 인증 성공을 반환합니다. 그러나 사용자가 현재 상태가 아니거나 잠겨 있으면 사용자 관리에서 인증 오류를 반환합니다.
존재하지 않음: 사용자 관리가 인증 오류를 반환합니다.
유효하지 않음: 사용자 관리가 인증 오류를 반환합니다.
인증 공급자가 반환한 결과를 평가합니다. 인증 공급자가 인증 성공을 반환하면 사용자가 로그인할 수 있습니다. 그렇지 않으면 사용자 관리에서 다음 인증 공급자를 확인합니다(2-3단계).
사용 가능한 인증 공급자가 사용자 자격 증명을 확인하지 않으면 인증 오류가 반환됩니다.
적시 프로비저닝이 구현되면 인증 공급자 중 하나가 사용자 자격 증명을 검증하면 사용자 관리에서 새 사용자가 동적으로 생성됩니다. (위의 기존 인증 절차의 3단계 이후).
AEM Forms는 적시 프로비저닝을 위해 다음 API를 제공합니다.
package com.adobe.idp.um.spi.authentication ;
publ ic interface IdentityCreator {
/**
* Tries to create a user with the in formation provided in the <code>UserProvisioningBO</code> object.
* If the user is successfully created, a valid AuthResponse is returned along with the information using which the user was created.
* It is the responsibility of the IdentityCreator to set the User obje ct in the cre dential map with th e ke y <code>UMA u thenticationUtil.authenticatedUserKey</code>
* The credentials are available in the <code>UserProvisioningBO</code> object in the 'credentials' property.
* If the IdentityCreator is unable to create a user due to any reason, it returns <code>null</code>
* @param userBO An object of <code>com.adobe. i dp.um . spi.authenti c ationUserProvisioningBO</code>
* @return */public AuthResponse create(UserProvisioningBO userBO);
/**
* Returns the name of the IdentityCreator which will be registered in preferences.
* This name is used to associate the IdentityProvider with the Auth Provider Configuration in the domain.
* @return The name of the Identity Creator which is recognized in Configuration.
*/
public String getName();
}
package com.adobe.idp.um.spi.authentication;
import com.adobe.idp.um.api.infomodel.User;
public interface AssignmentProvider {
/**
* Tries to assign roles or permissions or group memberships to users created via Just-in-time provisioning.
* @param user The User created via the Just-in-time provisioning process.
* @return a Boolean flag indicating whether the assignment was successful or not.
*/
public Boolean assign(User user);
/**
* Returns the name of the AssignmentProvider through which it is registered under preferences.
* This name is used to associate the AssignmentProvider with the Auth Provider Configuration in the domain.
* @return The name of the AssignmentProvider which is recognized in Configuration.
*/public String getName();
}
IdentityCreator
을 만드는 동안 로컬 사용자에 대해 더미 암호가 지정되었는지 확인하십시오. 이 암호 필드를 비워 두지 마십시오.DomainSpecificAuthentication
을 사용하십시오.API를 구현하는 DSC를 "적시 프로비저닝을 위한 API" 섹션에 작성합니다.
Forms 서버에 DSC를 배포합니다.
적시 사용 도메인을 만듭니다.
새 도메인을 저장합니다.
사용자가 AEM Forms에 로그인하려고 하는데 인증 공급자가 사용자 자격 증명을 수락한다고 가정합니다. 사용자가 아직 사용자 관리 데이터베이스에 없으면 사용자에 대한 ID 검사가 실패합니다. 이제 AEM Forms에서 다음 작업을 수행합니다.
UserProvisioningBO
개체를 만들고 자격 증명 맵에 배치합니다.UserProvisioningBO
에서 반환한 도메인 정보를 기반으로 도메인에 대해 등록된 IdentityCreator
및 AssignmentProvider
를 가져와 호출합니다.IdentityCreator
호출. 성공한 AuthResponse
을 반환하는 경우 자격 증명 맵에서 UserInfo
을 추출합니다. 사용자를 만든 후 그룹/역할 할당 및 기타 모든 사후 처리를 위해 AssignmentProvider
에 전달합니다.적시 프로비저닝 기능은 사용자를 동적으로 생성하는 데 사용할 수 있는 기본 구현 IdentityCreator
과 함께 제공됩니다. 사용자는 도메인의 디렉토리와 연관된 정보로 생성됩니다.