use of io.gravitee.am.model.SelfServiceAccountManagementSettings in project gravitee-access-management by gravitee-io.
the class DomainRepositoryTest method initDomain.
private Domain initDomain(String name) {
Domain domain = new Domain();
domain.setName(name);
domain.setHrid(name);
domain.setCreatedAt(new Date());
domain.setUpdatedAt(domain.getCreatedAt());
domain.setDescription(name + " description");
domain.setEnabled(true);
domain.setAlertEnabled(false);
domain.setPath("/" + name);
domain.setReferenceId("refId" + name);
domain.setReferenceType(ReferenceType.ENVIRONMENT);
domain.setVhostMode(true);
VirtualHost host = new VirtualHost();
host.setHost("hostname-" + name);
host.setPath("/hostname-" + name);
host.setOverrideEntrypoint(true);
VirtualHost host2 = new VirtualHost();
host2.setHost("hostname2-" + name);
host2.setPath("/hostname2-" + name);
host2.setOverrideEntrypoint(true);
domain.setVhosts(Arrays.asList(host, host2));
domain.setTags(new HashSet<>(Arrays.asList("tag1", "tag2")));
domain.setIdentities(new HashSet<>(Arrays.asList("id1", "id2")));
domain.setAccountSettings(new AccountSettings());
domain.setLoginSettings(new LoginSettings());
final OIDCSettings oidc = new OIDCSettings();
final CIBASettings cibaSettings = new CIBASettings();
cibaSettings.setEnabled(true);
final CIBASettingNotifier notifier = new CIBASettingNotifier();
notifier.setId(UUID.randomUUID().toString());
cibaSettings.setDeviceNotifiers(Arrays.asList(notifier));
oidc.setCibaSettings(cibaSettings);
domain.setOidc(oidc);
domain.setScim(new SCIMSettings());
domain.setUma(new UMASettings());
domain.setWebAuthnSettings(new WebAuthnSettings());
domain.setSelfServiceAccountManagementSettings(new SelfServiceAccountManagementSettings());
return domain;
}
use of io.gravitee.am.model.SelfServiceAccountManagementSettings in project gravitee-access-management by gravitee-io.
the class SelfServiceAccountManagementSettingsMongo method convert.
public SelfServiceAccountManagementSettings convert() {
SelfServiceAccountManagementSettings selfAccountManagementSettings = new SelfServiceAccountManagementSettings();
selfAccountManagementSettings.setEnabled(isEnabled());
return selfAccountManagementSettings;
}
Aggregations