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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
INSTANCE
-
-
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 interfaceorg.pac4j.core.authorization.generator.AuthorizationGenerator
-
registerLocaleSupplier
-
createUserProfile
-