[ https://issues.apache.org/jira/browse/KNOX-2556?focusedWorklogId=572210&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-572210 ]
ASF GitHub Bot logged work on KNOX-2556: ---------------------------------------- Author: ASF GitHub Bot Created on: 25/Mar/21 18:58 Start Date: 25/Mar/21 18:58 Worklog Time Spent: 10m Work Description: pzampino commented on a change in pull request #424: URL: https://github.com/apache/knox/pull/424#discussion_r601763257 ########## File path: gateway-provider-security-jwt/src/main/java/org/apache/knox/gateway/provider/federation/jwt/filter/AbstractJWTFilter.java ########## @@ -342,7 +376,34 @@ protected boolean validateToken(HttpServletRequest request, HttpServletResponse return false; } - protected boolean verifyTokenSignature(final JWT token) { + protected boolean validateToken(final HttpServletRequest request, + final HttpServletResponse response, + final FilterChain chain, + final String tokenId) + throws IOException, ServletException { + + if (tokenStateService != null) { + try { +// TokenMetadata metadata = tokenStateService.getTokenMetadata(tokenId); Review comment: I've created KNOX-2563 to provide the necessary metadata. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 572210) Time Spent: 1h 40m (was: 1.5h) > Enhance JWTProvider to accept knox.id as Passcode Token > ------------------------------------------------------- > > Key: KNOX-2556 > URL: https://issues.apache.org/jira/browse/KNOX-2556 > Project: Apache Knox > Issue Type: Improvement > Components: Server > Affects Versions: 1.6.0 > Reporter: Larry McCay > Assignee: Philip Zampino > Priority: Major > Time Spent: 1h 40m > Remaining Estimate: 0h > > This enhancement enables the use of the previously internal knox.id as a > Passcode Token for accessing proxied resources as an Authorization Bearer > token or HTTP Basic password. This id has been used to bind incoming > KnoxTokens (JWT) that embed such an id to the metadata in the Token State > Server in order to provide server side state management. > The motivation for this is the fact that certain 3rd party BI tooling such as > tableau not only have the inability to set a bearer token but also have size > limitations on the password field used to collect the username and password > credentials. > We will need to enhance the current JWTProvider to not require an actual JWT > but the Passcode Token will represent the same backend metadata. > This does mean that Passcode Tokens can only be used with the Token State > Server functionality enabled for both the KnoxToken service and the > JWTProvider federation provider. -- This message was sent by Atlassian Jira (v8.3.4#803005)