use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class RestAuthenticator method internalInit.
@Override
protected void internalInit() {
CommonHelper.assertNotBlank("url", url);
defaultProfileDefinition(new CommonProfileDefinition<>(x -> new RestProfile()));
if (mapper == null) {
mapper = new ObjectMapper();
mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
}
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class InMemoryProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
defaultProfileDefinition(new CommonProfileDefinition(profileFactory));
setSerializer(new JsonSerializer(CommonProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class IpRegexpAuthenticator method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
CommonHelper.assertNotNull("pattern", pattern);
defaultProfileDefinition(new CommonProfileDefinition(x -> new IpProfile()));
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class DbProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
assertNotNull("dataSource", this.dataSource);
this.dbi = new DBI(this.dataSource);
defaultProfileDefinition(new CommonProfileDefinition(x -> new DbProfile()));
setSerializer(new JsonSerializer(DbProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class DbProfileService method internalInit.
@Override
protected void internalInit() {
CommonHelper.assertNotNull("passwordEncoder", getPasswordEncoder());
defaultProfileDefinition(new CommonProfileDefinition<>(x -> new DbProfile()));
CommonHelper.assertNotNull("dataSource", this.dataSource);
this.dbi = new DBI(this.dataSource);
super.internalInit();
}
Aggregations