Class UserProfileGenerator

java.lang.Object
de.xima.fc.security.pac4j.authorization.generator.UserProfileGenerator
All Implemented Interfaces:
org.pac4j.core.authorization.generator.AuthorizationGenerator

public class UserProfileGenerator extends Object implements org.pac4j.core.authorization.generator.AuthorizationGenerator
Generates a formcycle user profile if access to the backend is granted and none exists. Also connects accounts to existing profiles if emails are matching. Verification/ Information emails will be send if necessary.
Since:
8.0.0
Author:
XIMA MEDIA GmbH, Dresden
  • Field Details

  • Method Details

    • generate

      public Optional<org.pac4j.core.profile.UserProfile> generate(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.UserProfile profile)
      Specified by:
      generate in interface org.pac4j.core.authorization.generator.AuthorizationGenerator
    • registerLocaleSupplier

      public static void registerLocaleSupplier(Supplier<Locale> localeSupplier)
    • createUserProfile

      public static void createUserProfile(org.pac4j.core.profile.UserProfile profile, Locale defaultLocale, String baseUrl)