Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

docs(cognito): fix stale enabledAuthFlows javadoc (#4159)

Priamo Germosen5c725025519e
diff --git a/src/main/java/io/github/hectorvent/floci/services/cognito/CognitoAuthFlowHandler.java b/src/main/java/io/github/hectorvent/floci/services/cognito/CognitoAuthFlowHandler.java
index 1888608149..3f93c5fd97 100644
--- a/src/main/java/io/github/hectorvent/floci/services/cognito/CognitoAuthFlowHandler.java
+++ b/src/main/java/io/github/hectorvent/floci/services/cognito/CognitoAuthFlowHandler.java
@@ -186,8 +186,9 @@ final class CognitoAuthFlowHandler {
}
/**
- * A client with no stored list, as one persisted before the default was materialised, gets the
- * AWS default rather than every flow.
+ * A client with no stored {@code ExplicitAuthFlows} gets the AWS default rather than every
+ * flow. Floci never materialises the default into storage, so this covers every such client,
+ * not just one from before enforcement existed.
*/
private static List<String> enabledAuthFlows(UserPoolClient client) {
List<String> enabled = client.getExplicitAuthFlows();