You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/03/16 13:18:00 UTC

[jira] [Commented] (KNOX-2553) Add token management flag in generated JWT tokens

    [ https://issues.apache.org/jira/browse/KNOX-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302513#comment-17302513 ] 

ASF subversion and git services commented on KNOX-2553:
-------------------------------------------------------

Commit 2be034535c025daf71818f717bd784286e01dd65 in knox's branch refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=2be0345 ]

KNOX-2553 - Adding the 'managed_token' flag in the issued JWT as well as the JSON response of our KnoxToken service (#416)

In order to avoid adding new and confusing methods into JWTokenAuthority I introduced a model object to store possible JWT attributes and kept only one method to issue a token.

> Add token management flag in generated JWT tokens
> -------------------------------------------------
>
>                 Key: KNOX-2553
>                 URL: https://issues.apache.org/jira/browse/KNOX-2553
>             Project: Apache Knox
>          Issue Type: Task
>          Components: Server
>    Affects Versions: 1.5.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, the generated JWT token - by our KnoxToken service - does not contain the information if it was a managed token (e.g. its state is stored using TokenStateService).
> Recommended solution: add this information in the claim array (similar to the generated token id which is stored as {{knox.id}} claim).



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