use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class RestAuthenticator method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
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 LdapProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("ldapAuthenticator", ldapAuthenticator);
assertNotNull("connectionFactory", connectionFactory);
assertNull("passwordEncoder", getPasswordEncoder());
assertNotBlank("usersDn", usersDn);
defaultProfileDefinition(new CommonProfileDefinition(x -> new LdapProfile()));
setSerializer(new JsonSerializer(LdapProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class CouchProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
assertNotNull("couchDbConnector", this.couchDbConnector);
defaultProfileDefinition(new CommonProfileDefinition(x -> new CouchProfile()));
setSerializer(new JsonSerializer(CouchProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.profile.definition.CommonProfileDefinition in project pac4j by pac4j.
the class MongoProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
CommonHelper.assertNotNull("passwordEncoder", getPasswordEncoder());
CommonHelper.assertNotNull("mongoClient", this.mongoClient);
CommonHelper.assertNotBlank("usersDatabase", this.usersDatabase);
CommonHelper.assertNotBlank("usersCollection", this.usersCollection);
defaultProfileDefinition(new CommonProfileDefinition(x -> new MongoProfile()));
setSerializer(new JsonSerializer(MongoProfile.class));
super.internalInit(forceReinit);
}
Aggregations