From 93bc8c6ff7075ffd0c43f70213a6703d81a0f43b Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Mon, 21 Aug 2023 19:18:49 -0700 Subject: [PATCH] Remove unused constants variable in OBO authenticator Signed-off-by: Ryan Liang --- .../org/opensearch/security/http/OnBehalfOfAuthenticator.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/opensearch/security/http/OnBehalfOfAuthenticator.java b/src/main/java/org/opensearch/security/http/OnBehalfOfAuthenticator.java index 74a4af3d80..43757c0268 100644 --- a/src/main/java/org/opensearch/security/http/OnBehalfOfAuthenticator.java +++ b/src/main/java/org/opensearch/security/http/OnBehalfOfAuthenticator.java @@ -56,8 +56,6 @@ public class OnBehalfOfAuthenticator implements HTTPAuthenticator { private static final Pattern BEARER = Pattern.compile("^\\s*Bearer\\s.*", Pattern.CASE_INSENSITIVE); private static final String BEARER_PREFIX = "bearer "; - private static final String TOKEN_TYPE_CLAIM = "typ"; - private static final String TOKEN_TYPE = "obo"; private final JwtParser jwtParser; private final String encryptionKey;