eclipse-vertx / vertx-auth

Apache License 2.0
160 stars 153 forks source link

OAuth2Options reuse the same JwtOptions instance #676

Closed bitkid closed 3 months ago

bitkid commented 4 months ago

version 4.5.7

this test fails

public void test() {
    OAuth2Options options1 = new OAuth2Options();
    options1.getJWTOptions().setIssuer("one");

    OAuth2Options options2 = new OAuth2Options();
    options2.getJWTOptions().setIssuer("two");

    assertEquals(options1.getJWTOptions().getIssuer(), "one");
}
bitkid commented 4 months ago

JWTAuthOptions may have the same problem

tsegismont commented 3 months ago

Thanks for reporting this, we'll look into it.

tsegismont commented 3 months ago

Fixed by #678