Zawartość pomocy dla wersji :
- 6.4
- 6.3
- 6.2
- Starsze wersje
AEM forms supports just-in-time provisioning of users that don’t yet exist in User Management. With just-in-time provisioning, users are automatically added to User Management after their credentials are successfully authenticated. In addition, relevant roles and groups are assigned dynamically to the new user.
When just-in-time provisioning is implemented, a new user is created dynamically in User Management if one of the authentication providers validates the user’s credentials. (After step 3 in the traditional authentication procedure, above.)
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(); }
While creating a custom IdentityCreator for a hybrid domain, ensure that a dummy password is specified for the local user. Do not leave this password field empty.
Recommendation: Use DomainSpecificAuthentication to validate user credentials against a specific domain.
-
In Administration Console, click Settings > User Management > Domain Management > New Enterprise Domain.
Configure the domain and select Enable Just In Time Provisioning. (See Setting up and managing domains.
Add authentication providers. While adding authentication providers, on the New Authentication screen, select a registered Identity Creator and Assignment Provider.
Assume that a user is trying to log in to AEM forms and an authentication provider accepts their user credentials. If the user doesn’t yet exist in the User Management database, the identity check for the user fails. AEM forms now performs the following actions:
Uwaga:
The just-in-time provisioning feature ships with a default implementation of IdentityCreator that you can use to dynamically create users. Users are created with the information associated with the directories in the domain.