You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandor Molnar (Jira)" <ji...@apache.org> on 2021/06/11 04:39:00 UTC

[jira] [Created] (KNOX-2621) Consolidate HTTP error codes in JWT federation filter

Sandor Molnar created KNOX-2621:
-----------------------------------

             Summary: Consolidate HTTP error codes in JWT federation filter
                 Key: KNOX-2621
                 URL: https://issues.apache.org/jira/browse/KNOX-2621
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 1.6.0
            Reporter: Sandor Molnar
            Assignee: Sandor Molnar


In {{org.apache.knox.gateway.provider.federation.jwt.filter.AbstractJWTFilter.validateToken(...)}} there are multiple validation takes place and Knox returns {{400/BAD_REQUEST}} in some places where {{401/UNAUTHORIZED}} sould have been used (for instance, when a token is expired).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)