Skip to content

Commit 305b64f

Browse files
committed
we do not need a domain for a group file
1 parent 731fb21 commit 305b64f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/io/mapsmessaging/security/jaas/CognitoLoginTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright [ 2020 - 2023 ] [Matthew Buckton]
2+
* Copyright [ 2020 - 2024 ] [Matthew Buckton]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,10 +62,11 @@ void basicValidation() throws LoginException {
6262
}
6363
ClientCallbackHandler clientCallbackHandler = new ClientCallbackHandler("maps.test", "testPassword01!", "");
6464
Subject subject = new Subject();
65-
LoginModule loginModule = new AwsCognitoLoginModule();
65+
AwsCognitoLoginModule loginModule = new AwsCognitoLoginModule();
6666
loginModule.initialize(subject, clientCallbackHandler, null, getOptions());
6767
Assertions.assertTrue(loginModule.login());
6868
Assertions.assertTrue(loginModule.commit());
69+
Assertions.assertEquals("cognito", loginModule.getDomain() );
6970
}
7071

7172
@Test

0 commit comments

Comments
 (0)