Skip to content

Commit

Permalink
allow empty secret int test with default policy because minlength is …
Browse files Browse the repository at this point in the history
…0, only with strict it should fail
  • Loading branch information
strehle committed Oct 24, 2023
1 parent 598ba53 commit 66841d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ void setUp() {
@Test
void testEmptyClientSecret() {
zone.getConfig().setClientSecretPolicy(defaultPolicy);
validator.validate(TEST_SECRET_1);
zone.getConfig().setClientSecretPolicy(strictPolicy);
assertThrows(InvalidClientSecretException.class, () -> validator.validate(TEST_SECRET_1));
}

Expand Down

0 comments on commit 66841d6

Please sign in to comment.