mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
fix(cognito): include domains in user pool responses (#5448)
* fix(cognito): include domains in user pool responses * test(cognito): cover UpdateUserPool domain fields * fix(cognito): scope user pool domain lookups by account * fix(cognito): avoid stale domain responses after reset * fix(cognito): drop redundant domain delete lock
This commit is contained in:
1 parent
e8a300f4d5
commit
34c11b8981
5 files changed
+226
-1
No files matched your search
+15
@@ -454,6 +454,21 @@ class CognitoFeaturesTest {
|
||||
assertThat(sub.mutable()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(56)
|
||||
void describeUserPoolReturnsItsPrefixDomain() {
|
||||
String domain = "compat-" + UUID.randomUUID().toString().replace("-", "").substring(0, 20);
|
||||
cognito.createUserPoolDomain(b -> b.domain(domain).userPoolId(poolId));
|
||||
|
||||
try {
|
||||
UserPoolType userPool = cognito.describeUserPool(b -> b.userPoolId(poolId)).userPool();
|
||||
assertThat(userPool.domain()).isEqualTo(domain);
|
||||
assertThat(userPool.customDomain()).isNull();
|
||||
} finally {
|
||||
cognito.deleteUserPoolDomain(b -> b.domain(domain).userPoolId(poolId));
|
||||
}
|
||||
}
|
||||
|
||||
// ── AdminRespondToAuthChallenge ─────────────────────────────────────────
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user