mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(cognito): enrich User Pool responses and implement MfaConfig stub (#198)
This commit is contained in:
1 parent
9d6181c547
commit
441d9f179e
5 files changed
+337
-21
No files matched your search
@@ -36,6 +36,8 @@ public class CognitoJsonHandler {
|
||||
case "CreateUserPool" -> handleCreateUserPool(request, region);
|
||||
case "DescribeUserPool" -> handleDescribeUserPool(request);
|
||||
case "ListUserPools" -> handleListUserPools(request);
|
||||
case "UpdateUserPool" -> handleUpdateUserPool(request, region);
|
||||
case "GetUserPoolMfaConfig" -> handleGetUserPoolMfaConfig(request);
|
||||
case "DeleteUserPool" -> handleDeleteUserPool(request);
|
||||
case "CreateUserPoolClient" -> handleCreateUserPoolClient(request);
|
||||
case "DescribeUserPoolClient" -> handleDescribeUserPoolClient(request);
|
||||
@@ -77,17 +79,18 @@ public class CognitoJsonHandler {
|
||||
}
|
||||
|
||||
private Response handleCreateUserPool(JsonNode request, String region) {
|
||||
String poolName = request.path("PoolName").asText();
|
||||
UserPool pool = service.createUserPool(poolName, region);
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> reqMap = objectMapper.convertValue(request, Map.class);
|
||||
UserPool pool = service.createUserPool(reqMap, region);
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.set("UserPool", userPoolToNode(pool));
|
||||
response.set("UserPool", userPoolToFullNode(pool));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private Response handleDescribeUserPool(JsonNode request) {
|
||||
UserPool pool = service.describeUserPool(request.path("UserPoolId").asText());
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.set("UserPool", userPoolToNode(pool));
|
||||
response.set("UserPool", userPoolToFullNode(pool));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
@@ -95,7 +98,23 @@ public class CognitoJsonHandler {
|
||||
List<UserPool> pools = service.listUserPools();
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
ArrayNode items = response.putArray("UserPools");
|
||||
pools.forEach(p -> items.add(userPoolToNode(p)));
|
||||
pools.forEach(p -> items.add(userPoolToDescriptionNode(p)));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private Response handleUpdateUserPool(JsonNode request, String region) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> reqMap = objectMapper.convertValue(request, Map.class);
|
||||
UserPool pool = service.updateUserPool(reqMap, region);
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.set("UserPool", userPoolToFullNode(pool));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private Response handleGetUserPoolMfaConfig(JsonNode request) {
|
||||
UserPool pool = service.describeUserPool(request.path("UserPoolId").asText());
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.put("MfaConfiguration", pool.getMfaConfiguration());
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
@@ -385,12 +404,54 @@ public class CognitoJsonHandler {
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private ObjectNode userPoolToNode(UserPool p) {
|
||||
private ObjectNode userPoolToDescriptionNode(UserPool p) {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
node.put("Id", p.getId());
|
||||
node.put("Name", p.getName());
|
||||
node.put("CreationDate", p.getCreationDate());
|
||||
node.put("LastModifiedDate", p.getLastModifiedDate());
|
||||
node.set("LambdaConfig", objectMapper.valueToTree(p.getLambdaConfig() != null ? p.getLambdaConfig() : new HashMap<>()));
|
||||
node.put("Status", p.getStatus());
|
||||
node.put("LastModifiedDate", (double) p.getLastModifiedDate());
|
||||
node.put("CreationDate", (double) p.getCreationDate());
|
||||
return node;
|
||||
}
|
||||
|
||||
private ObjectNode userPoolToFullNode(UserPool p) {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
node.put("Id", p.getId());
|
||||
node.put("Name", p.getName());
|
||||
node.put("Arn", p.getArn());
|
||||
node.put("Status", p.getStatus());
|
||||
node.put("CreationDate", (double) p.getCreationDate());
|
||||
node.put("LastModifiedDate", (double) p.getLastModifiedDate());
|
||||
|
||||
node.set("Policies", objectMapper.valueToTree(p.getPolicies() != null ? p.getPolicies() : new HashMap<>()));
|
||||
node.put("DeletionProtection", p.getDeletionProtection() != null ? p.getDeletionProtection() : "INACTIVE");
|
||||
node.set("LambdaConfig", objectMapper.valueToTree(p.getLambdaConfig() != null ? p.getLambdaConfig() : new HashMap<>()));
|
||||
node.set("SchemaAttributes", objectMapper.valueToTree(p.getSchemaAttributes() != null ? p.getSchemaAttributes() : new java.util.ArrayList<>()));
|
||||
node.set("AutoVerifiedAttributes", objectMapper.valueToTree(p.getAutoVerifiedAttributes() != null ? p.getAutoVerifiedAttributes() : new java.util.ArrayList<>()));
|
||||
node.set("AliasAttributes", objectMapper.valueToTree(p.getAliasAttributes() != null ? p.getAliasAttributes() : new java.util.ArrayList<>()));
|
||||
node.set("UsernameAttributes", objectMapper.valueToTree(p.getUsernameAttributes() != null ? p.getUsernameAttributes() : new java.util.ArrayList<>()));
|
||||
|
||||
if (p.getSmsVerificationMessage() != null) node.put("SmsVerificationMessage", p.getSmsVerificationMessage());
|
||||
if (p.getEmailVerificationMessage() != null) node.put("EmailVerificationMessage", p.getEmailVerificationMessage());
|
||||
if (p.getEmailVerificationSubject() != null) node.put("EmailVerificationSubject", p.getEmailVerificationSubject());
|
||||
|
||||
node.set("VerificationMessageTemplate", objectMapper.valueToTree(p.getVerificationMessageTemplate() != null ? p.getVerificationMessageTemplate() : new HashMap<>()));
|
||||
|
||||
if (p.getSmsAuthenticationMessage() != null) node.put("SmsAuthenticationMessage", p.getSmsAuthenticationMessage());
|
||||
|
||||
node.put("MfaConfiguration", p.getMfaConfiguration() != null ? p.getMfaConfiguration() : "OFF");
|
||||
node.set("DeviceConfiguration", objectMapper.valueToTree(p.getDeviceConfiguration() != null ? p.getDeviceConfiguration() : new HashMap<>()));
|
||||
node.put("EstimatedNumberOfUsers", p.getEstimatedNumberOfUsers());
|
||||
node.set("EmailConfiguration", objectMapper.valueToTree(p.getEmailConfiguration() != null ? p.getEmailConfiguration() : new HashMap<>()));
|
||||
node.set("SmsConfiguration", objectMapper.valueToTree(p.getSmsConfiguration() != null ? p.getSmsConfiguration() : new HashMap<>()));
|
||||
node.set("UserPoolTags", objectMapper.valueToTree(p.getUserPoolTags() != null ? p.getUserPoolTags() : new HashMap<>()));
|
||||
node.set("AdminCreateUserConfig", objectMapper.valueToTree(p.getAdminCreateUserConfig() != null ? p.getAdminCreateUserConfig() : new HashMap<>()));
|
||||
node.set("UserPoolAddOns", objectMapper.valueToTree(p.getUserPoolAddOns() != null ? p.getUserPoolAddOns() : new HashMap<>()));
|
||||
node.set("UsernameConfiguration", objectMapper.valueToTree(p.getUsernameConfiguration() != null ? p.getUsernameConfiguration() : new HashMap<>()));
|
||||
node.set("AccountRecoverySetting", objectMapper.valueToTree(p.getAccountRecoverySetting() != null ? p.getAccountRecoverySetting() : new HashMap<>()));
|
||||
node.put("UserPoolTier", p.getUserPoolTier() != null ? p.getUserPoolTier() : "ESSENTIALS");
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.cognito;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.config.EmulatorConfig;
|
||||
import io.github.hectorvent.floci.core.common.RegionResolver;
|
||||
import io.github.hectorvent.floci.core.storage.StorageBackend;
|
||||
import io.github.hectorvent.floci.core.storage.StorageFactory;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -40,9 +41,10 @@ public class CognitoService {
|
||||
private final StorageBackend<String, CognitoUser> userStore;
|
||||
private final StorageBackend<String, CognitoGroup> groupStore;
|
||||
private final String baseUrl;
|
||||
private final RegionResolver regionResolver;
|
||||
|
||||
@Inject
|
||||
public CognitoService(StorageFactory storageFactory, EmulatorConfig emulatorConfig) {
|
||||
public CognitoService(StorageFactory storageFactory, EmulatorConfig emulatorConfig, RegionResolver regionResolver) {
|
||||
this.poolStore = storageFactory.create("cognito", "cognito-pools.json",
|
||||
new TypeReference<Map<String, UserPool>>() {});
|
||||
this.clientStore = storageFactory.create("cognito", "cognito-clients.json",
|
||||
@@ -54,6 +56,7 @@ public class CognitoService {
|
||||
this.groupStore = storageFactory.create("cognito", "cognito-groups.json",
|
||||
new TypeReference<Map<String, CognitoGroup>>() {});
|
||||
this.baseUrl = trimTrailingSlash(emulatorConfig.baseUrl());
|
||||
this.regionResolver = regionResolver;
|
||||
}
|
||||
|
||||
CognitoService(StorageBackend<String, UserPool> poolStore,
|
||||
@@ -61,28 +64,74 @@ public class CognitoService {
|
||||
StorageBackend<String, ResourceServer> resourceServerStore,
|
||||
StorageBackend<String, CognitoUser> userStore,
|
||||
StorageBackend<String, CognitoGroup> groupStore,
|
||||
String baseUrl) {
|
||||
String baseUrl,
|
||||
RegionResolver regionResolver) {
|
||||
this.poolStore = poolStore;
|
||||
this.clientStore = clientStore;
|
||||
this.resourceServerStore = resourceServerStore;
|
||||
this.userStore = userStore;
|
||||
this.groupStore = groupStore;
|
||||
this.baseUrl = baseUrl;
|
||||
this.regionResolver = regionResolver;
|
||||
}
|
||||
|
||||
// ──────────────────────────── User Pools ────────────────────────────
|
||||
|
||||
public UserPool createUserPool(String name, String region) {
|
||||
@SuppressWarnings("unchecked")
|
||||
public UserPool createUserPool(Map<String, Object> request, String region) {
|
||||
String name = (String) request.get("PoolName");
|
||||
String id = region + "_" + UUID.randomUUID().toString().replace("-", "").substring(0, 9);
|
||||
UserPool pool = new UserPool();
|
||||
pool.setId(id);
|
||||
pool.setName(name);
|
||||
pool.setArn(regionResolver.buildArn("cognito-idp", region, "userpool/" + id));
|
||||
|
||||
populateUserPool(pool, request);
|
||||
|
||||
ensureJwtSigningKeys(pool);
|
||||
poolStore.put(id, pool);
|
||||
LOG.infov("Created User Pool: {0}", id);
|
||||
return pool;
|
||||
}
|
||||
|
||||
public UserPool updateUserPool(Map<String, Object> request, String region) {
|
||||
String id = (String) request.get("UserPoolId");
|
||||
UserPool pool = describeUserPool(id);
|
||||
|
||||
populateUserPool(pool, request);
|
||||
|
||||
pool.setLastModifiedDate(System.currentTimeMillis() / 1000L);
|
||||
poolStore.put(id, pool);
|
||||
LOG.infov("Updated User Pool: {0}", id);
|
||||
return pool;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void populateUserPool(UserPool pool, Map<String, Object> request) {
|
||||
if (request.containsKey("Policies")) pool.setPolicies((Map<String, Object>) request.get("Policies"));
|
||||
if (request.containsKey("DeletionProtection")) pool.setDeletionProtection((String) request.get("DeletionProtection"));
|
||||
if (request.containsKey("LambdaConfig")) pool.setLambdaConfig((Map<String, Object>) request.get("LambdaConfig"));
|
||||
if (request.containsKey("Schema")) pool.setSchemaAttributes((List<Map<String, Object>>) request.get("Schema"));
|
||||
if (request.containsKey("AutoVerifiedAttributes")) pool.setAutoVerifiedAttributes((List<String>) request.get("AutoVerifiedAttributes"));
|
||||
if (request.containsKey("AliasAttributes")) pool.setAliasAttributes((List<String>) request.get("AliasAttributes"));
|
||||
if (request.containsKey("UsernameAttributes")) pool.setUsernameAttributes((List<String>) request.get("UsernameAttributes"));
|
||||
if (request.containsKey("SmsVerificationMessage")) pool.setSmsVerificationMessage((String) request.get("SmsVerificationMessage"));
|
||||
if (request.containsKey("EmailVerificationMessage")) pool.setEmailVerificationMessage((String) request.get("EmailVerificationMessage"));
|
||||
if (request.containsKey("EmailVerificationSubject")) pool.setEmailVerificationSubject((String) request.get("EmailVerificationSubject"));
|
||||
if (request.containsKey("VerificationMessageTemplate")) pool.setVerificationMessageTemplate((Map<String, Object>) request.get("VerificationMessageTemplate"));
|
||||
if (request.containsKey("SmsAuthenticationMessage")) pool.setSmsAuthenticationMessage((String) request.get("SmsAuthenticationMessage"));
|
||||
if (request.containsKey("MfaConfiguration")) pool.setMfaConfiguration((String) request.get("MfaConfiguration"));
|
||||
if (request.containsKey("DeviceConfiguration")) pool.setDeviceConfiguration((Map<String, Object>) request.get("DeviceConfiguration"));
|
||||
if (request.containsKey("EmailConfiguration")) pool.setEmailConfiguration((Map<String, Object>) request.get("EmailConfiguration"));
|
||||
if (request.containsKey("SmsConfiguration")) pool.setSmsConfiguration((Map<String, Object>) request.get("SmsConfiguration"));
|
||||
if (request.containsKey("UserPoolTags")) pool.setUserPoolTags((Map<String, String>) request.get("UserPoolTags"));
|
||||
if (request.containsKey("AdminCreateUserConfig")) pool.setAdminCreateUserConfig((Map<String, Object>) request.get("AdminCreateUserConfig"));
|
||||
if (request.containsKey("UserPoolAddOns")) pool.setUserPoolAddOns((Map<String, Object>) request.get("UserPoolAddOns"));
|
||||
if (request.containsKey("UsernameConfiguration")) pool.setUsernameConfiguration((Map<String, Object>) request.get("UsernameConfiguration"));
|
||||
if (request.containsKey("AccountRecoverySetting")) pool.setAccountRecoverySetting((Map<String, Object>) request.get("AccountRecoverySetting"));
|
||||
if (request.containsKey("UserPoolTier")) pool.setUserPoolTier((String) request.get("UserPoolTier"));
|
||||
}
|
||||
|
||||
public UserPool describeUserPool(String id) {
|
||||
UserPool pool = poolStore.get(id)
|
||||
.orElseThrow(() -> new AwsException("ResourceNotFoundException", "User pool not found", 404));
|
||||
|
||||
@@ -2,12 +2,18 @@ package io.github.hectorvent.floci.services.cognito.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class UserPool {
|
||||
private String id;
|
||||
private String name;
|
||||
private String arn;
|
||||
private String status = "Enabled";
|
||||
private String signingSecret;
|
||||
private String signingKeyId;
|
||||
private String signingPublicKey;
|
||||
@@ -15,6 +21,31 @@ public class UserPool {
|
||||
private long creationDate;
|
||||
private long lastModifiedDate;
|
||||
|
||||
// Configuration fields
|
||||
private Map<String, Object> policies = new HashMap<>();
|
||||
private String deletionProtection = "INACTIVE";
|
||||
private Map<String, Object> lambdaConfig = new HashMap<>();
|
||||
private List<Map<String, Object>> schemaAttributes = new ArrayList<>();
|
||||
private List<String> autoVerifiedAttributes = new ArrayList<>();
|
||||
private List<String> aliasAttributes = new ArrayList<>();
|
||||
private List<String> usernameAttributes = new ArrayList<>();
|
||||
private String smsVerificationMessage;
|
||||
private String emailVerificationMessage;
|
||||
private String emailVerificationSubject;
|
||||
private Map<String, Object> verificationMessageTemplate = new HashMap<>();
|
||||
private String smsAuthenticationMessage;
|
||||
private String mfaConfiguration = "OFF";
|
||||
private Map<String, Object> deviceConfiguration = new HashMap<>();
|
||||
private int estimatedNumberOfUsers = 0;
|
||||
private Map<String, Object> emailConfiguration = new HashMap<>();
|
||||
private Map<String, Object> smsConfiguration = new HashMap<>();
|
||||
private Map<String, String> userPoolTags = new HashMap<>();
|
||||
private Map<String, Object> adminCreateUserConfig = new HashMap<>();
|
||||
private Map<String, Object> userPoolAddOns = new HashMap<>();
|
||||
private Map<String, Object> usernameConfiguration = new HashMap<>();
|
||||
private Map<String, Object> accountRecoverySetting = new HashMap<>();
|
||||
private String userPoolTier = "ESSENTIALS";
|
||||
|
||||
public UserPool() {
|
||||
long now = System.currentTimeMillis() / 1000L;
|
||||
this.creationDate = now;
|
||||
@@ -28,6 +59,12 @@ public class UserPool {
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getArn() { return arn; }
|
||||
public void setArn(String arn) { this.arn = arn; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public String getSigningSecret() { return signingSecret; }
|
||||
public void setSigningSecret(String signingSecret) { this.signingSecret = signingSecret; }
|
||||
|
||||
@@ -45,4 +82,73 @@ public class UserPool {
|
||||
|
||||
public long getLastModifiedDate() { return lastModifiedDate; }
|
||||
public void setLastModifiedDate(long lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; }
|
||||
|
||||
public Map<String, Object> getPolicies() { return policies; }
|
||||
public void setPolicies(Map<String, Object> policies) { this.policies = policies; }
|
||||
|
||||
public String getDeletionProtection() { return deletionProtection; }
|
||||
public void setDeletionProtection(String deletionProtection) { this.deletionProtection = deletionProtection; }
|
||||
|
||||
public Map<String, Object> getLambdaConfig() { return lambdaConfig; }
|
||||
public void setLambdaConfig(Map<String, Object> lambdaConfig) { this.lambdaConfig = lambdaConfig; }
|
||||
|
||||
public List<Map<String, Object>> getSchemaAttributes() { return schemaAttributes; }
|
||||
public void setSchemaAttributes(List<Map<String, Object>> schemaAttributes) { this.schemaAttributes = schemaAttributes; }
|
||||
|
||||
public List<String> getAutoVerifiedAttributes() { return autoVerifiedAttributes; }
|
||||
public void setAutoVerifiedAttributes(List<String> autoVerifiedAttributes) { this.autoVerifiedAttributes = autoVerifiedAttributes; }
|
||||
|
||||
public List<String> getAliasAttributes() { return aliasAttributes; }
|
||||
public void setAliasAttributes(List<String> aliasAttributes) { this.aliasAttributes = aliasAttributes; }
|
||||
|
||||
public List<String> getUsernameAttributes() { return usernameAttributes; }
|
||||
public void setUsernameAttributes(List<String> usernameAttributes) { this.usernameAttributes = usernameAttributes; }
|
||||
|
||||
public String getSmsVerificationMessage() { return smsVerificationMessage; }
|
||||
public void setSmsVerificationMessage(String smsVerificationMessage) { this.smsVerificationMessage = smsVerificationMessage; }
|
||||
|
||||
public String getEmailVerificationMessage() { return emailVerificationMessage; }
|
||||
public void setEmailVerificationMessage(String emailVerificationMessage) { this.emailVerificationMessage = emailVerificationMessage; }
|
||||
|
||||
public String getEmailVerificationSubject() { return emailVerificationSubject; }
|
||||
public void setEmailVerificationSubject(String emailVerificationSubject) { this.emailVerificationSubject = emailVerificationSubject; }
|
||||
|
||||
public Map<String, Object> getVerificationMessageTemplate() { return verificationMessageTemplate; }
|
||||
public void setVerificationMessageTemplate(Map<String, Object> verificationMessageTemplate) { this.verificationMessageTemplate = verificationMessageTemplate; }
|
||||
|
||||
public String getSmsAuthenticationMessage() { return smsAuthenticationMessage; }
|
||||
public void setSmsAuthenticationMessage(String smsAuthenticationMessage) { this.smsAuthenticationMessage = smsAuthenticationMessage; }
|
||||
|
||||
public String getMfaConfiguration() { return mfaConfiguration; }
|
||||
public void setMfaConfiguration(String mfaConfiguration) { this.mfaConfiguration = mfaConfiguration; }
|
||||
|
||||
public Map<String, Object> getDeviceConfiguration() { return deviceConfiguration; }
|
||||
public void setDeviceConfiguration(Map<String, Object> deviceConfiguration) { this.deviceConfiguration = deviceConfiguration; }
|
||||
|
||||
public int getEstimatedNumberOfUsers() { return estimatedNumberOfUsers; }
|
||||
public void setEstimatedNumberOfUsers(int estimatedNumberOfUsers) { this.estimatedNumberOfUsers = estimatedNumberOfUsers; }
|
||||
|
||||
public Map<String, Object> getEmailConfiguration() { return emailConfiguration; }
|
||||
public void setEmailConfiguration(Map<String, Object> emailConfiguration) { this.emailConfiguration = emailConfiguration; }
|
||||
|
||||
public Map<String, Object> getSmsConfiguration() { return smsConfiguration; }
|
||||
public void setSmsConfiguration(Map<String, Object> smsConfiguration) { this.smsConfiguration = smsConfiguration; }
|
||||
|
||||
public Map<String, String> getUserPoolTags() { return userPoolTags; }
|
||||
public void setUserPoolTags(Map<String, String> userPoolTags) { this.userPoolTags = userPoolTags; }
|
||||
|
||||
public Map<String, Object> getAdminCreateUserConfig() { return adminCreateUserConfig; }
|
||||
public void setAdminCreateUserConfig(Map<String, Object> adminCreateUserConfig) { this.adminCreateUserConfig = adminCreateUserConfig; }
|
||||
|
||||
public Map<String, Object> getUserPoolAddOns() { return userPoolAddOns; }
|
||||
public void setUserPoolAddOns(Map<String, Object> userPoolAddOns) { this.userPoolAddOns = userPoolAddOns; }
|
||||
|
||||
public Map<String, Object> getUsernameConfiguration() { return usernameConfiguration; }
|
||||
public void setUsernameConfiguration(Map<String, Object> usernameConfiguration) { this.usernameConfiguration = usernameConfiguration; }
|
||||
|
||||
public Map<String, Object> getAccountRecoverySetting() { return accountRecoverySetting; }
|
||||
public void setAccountRecoverySetting(Map<String, Object> accountRecoverySetting) { this.accountRecoverySetting = accountRecoverySetting; }
|
||||
|
||||
public String getUserPoolTier() { return userPoolTier; }
|
||||
public void setUserPoolTier(String userPoolTier) { this.userPoolTier = userPoolTier; }
|
||||
}
|
||||
Reference in new issue
Block a user