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 aformcycle 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 Summary
Fields Modifier and Type Field Description static UserProfileGenerator
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
createUserProfile(org.pac4j.core.profile.UserProfile profile, Locale defaultLocale, String baseUrl)
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)
static void
registerLocaleSupplier(Supplier<Locale> localeSupplier)
-
-
-
Field Detail
-
INSTANCE
public static final UserProfileGenerator INSTANCE
-
-
Method Detail
-
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 interfaceorg.pac4j.core.authorization.generator.AuthorizationGenerator
-
-