{"action":"created","issue":{"url":"https://api.github.com/repos/ory-am/fosite/issues/122","repository_url":"https://api.github.com/repos/ory-am/fosite","labels_url":"https://api.github.com/repos/ory-am/fosite/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/ory-am/fosite/issues/122/comments","events_url":"https://api.github.com/repos/ory-am/fosite/issues/122/events","html_url":"https://github.com/ory-am/fosite/issues/122","id":184665177,"number":122,"title":"Accessing JTI in storage for a JWT","user":{"login":"cristiangraz","id":169986,"avatar_url":"https://avatars.githubusercontent.com/u/169986?v=3","gravatar_id":"","url":"https://api.github.com/users/cristiangraz","html_url":"https://github.com/cristiangraz","followers_url":"https://api.github.com/users/cristiangraz/followers","following_url":"https://api.github.com/users/cristiangraz/following{/other_user}","gists_url":"https://api.github.com/users/cristiangraz/gists{/gist_id}","starred_url":"https://api.github.com/users/cristiangraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristiangraz/subscriptions","organizations_url":"https://api.github.com/users/cristiangraz/orgs","repos_url":"https://api.github.com/users/cristiangraz/repos","events_url":"https://api.github.com/users/cristiangraz/events{/privacy}","received_events_url":"https://api.github.com/users/cristiangraz/received_events","type":"User","site_admin":false},"labels":[{"id":303748326,"url":"https://api.github.com/repos/ory-am/fosite/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-23T01:17:16Z","updated_at":"2016-11-02T20:55:33Z","closed_at":null,"body":"The storage receives the token's signature, but doesn't have the ability to access the JTI for the JWT. Would you be opposed to a PR to make the JTI accessible to storage? I was thinking the `JWTSessionContainer` could include two additional interface methods:\n\n``` go\n// SetJTI sets the JTI for the given token type.\nSetJTI(fosite.TokenType, string)\n\n// GetJTI retrieves the JTI for the given token type.\nGetJTI(fosite.TokenType) string\n```\n\nThe `generate` method in `R256JWTStrategy` could handle setting the JTI and storing in the session before calling `ToMapClaims`. Storage could then access with `session.GetJTI(fosite.AccessToken)`\n"},"comment":{"url":"https://api.github.com/repos/ory-am/fosite/issues/comments/257996118","html_url":"https://github.com/ory-am/fosite/issues/122#issuecomment-257996118","issue_url":"https://api.github.com/repos/ory-am/fosite/issues/122","id":257996118,"user":{"login":"arekkas","id":3372410,"avatar_url":"https://avatars.githubusercontent.com/u/3372410?v=3","gravatar_id":"","url":"https://api.github.com/users/arekkas","html_url":"https://github.com/arekkas","followers_url":"https://api.github.com/users/arekkas/followers","following_url":"https://api.github.com/users/arekkas/following{/other_user}","gists_url":"https://api.github.com/users/arekkas/gists{/gist_id}","starred_url":"https://api.github.com/users/arekkas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arekkas/subscriptions","organizations_url":"https://api.github.com/users/arekkas/orgs","repos_url":"https://api.github.com/users/arekkas/repos","events_url":"https://api.github.com/users/arekkas/events{/privacy}","received_events_url":"https://api.github.com/users/arekkas/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T20:55:33Z","updated_at":"2016-11-02T20:55:33Z","body":"Would you mind taking a shot @cristiangraz ?"}}
{"actor":{"display_login":"arekkas"}}