You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/02/08 15:24:36 UTC
[GitHub] [solr] dsmiley commented on a change in pull request #606: SOLR-15907 JWTAuthPlugin move to module, new package
dsmiley commented on a change in pull request #606:
URL: https://github.com/apache/solr/pull/606#discussion_r801753488
##########
File path: solr/modules/jwt-auth/src/test/org/apache/solr/security/jwt/JWTAuthPluginTest.java
##########
@@ -64,21 +64,30 @@
// Shared with other tests
static HashMap<String, Object> testJwk;
+ public static Path JWT_TEST_PATH() {
+ return getFile("solr/security").getParentFile().toPath();
+ }
+
static {
- // Generate an RSA key pair, which will be used for signing and verification of the JWT, wrapped in a JWK
+ // Generate an RSA key pair, which will be used for signing and verification of the JWT, wrapped
+ // in a JWK
try {
rsaJsonWebKey = RsaJwkGenerator.generateJwk(2048);
rsaJsonWebKey.setKeyId("k1");
testJwk = new HashMap<>();
testJwk.put("kty", rsaJsonWebKey.getKeyType());
- testJwk.put("e", BigEndianBigInteger.toBase64Url(rsaJsonWebKey.getRsaPublicKey().getPublicExponent()));
+ testJwk.put(
+ "e",
+ BigEndianBigInteger.toBase64Url(rsaJsonWebKey.getRsaPublicKey().getPublicExponent()));
Review comment:
Can we please apply formatting in a separate PR/commit and then exclude this from `.git-blame-ignore-revs` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org