{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/20","repository_url":"https://api.github.com/repos/auth0/go-jwt-middleware","labels_url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/20/comments","events_url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/20/events","html_url":"https://github.com/auth0/go-jwt-middleware/issues/20","id":160932191,"number":20,"title":"Has jwt-go changed since the README was published?","user":{"login":"seanlindo","id":2204776,"avatar_url":"https://avatars.githubusercontent.com/u/2204776?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlindo","html_url":"https://github.com/seanlindo","followers_url":"https://api.github.com/users/seanlindo/followers","following_url":"https://api.github.com/users/seanlindo/following{/other_user}","gists_url":"https://api.github.com/users/seanlindo/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlindo/subscriptions","organizations_url":"https://api.github.com/users/seanlindo/orgs","repos_url":"https://api.github.com/users/seanlindo/repos","events_url":"https://api.github.com/users/seanlindo/events{/privacy}","received_events_url":"https://api.github.com/users/seanlindo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-17T17:01:05Z","updated_at":"2016-10-08T07:58:12Z","closed_at":null,"body":"This code snippet no longer works:\r\n\r\n`for k, v := range user.(*jwt.Token).Claims {\r\n    fmt.Fprintf(w, \"%s :\\t%#v\\n\", k, v)\r\n  }`\r\n\r\n`Claims` cannot be ranged over, but I assume this was possible previously. I'm actually unsure how to access any of the claims at all from inside of the handler. When I log `Claims`, it's logged as a map. When I try to work with `Claims` as one would work with a map, I just get a litany of errors. \r\n"},"comment":{"url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/comments/252410309","html_url":"https://github.com/auth0/go-jwt-middleware/issues/20#issuecomment-252410309","issue_url":"https://api.github.com/repos/auth0/go-jwt-middleware/issues/20","id":252410309,"user":{"login":"rushstrike","id":10516699,"avatar_url":"https://avatars.githubusercontent.com/u/10516699?v=3","gravatar_id":"","url":"https://api.github.com/users/rushstrike","html_url":"https://github.com/rushstrike","followers_url":"https://api.github.com/users/rushstrike/followers","following_url":"https://api.github.com/users/rushstrike/following{/other_user}","gists_url":"https://api.github.com/users/rushstrike/gists{/gist_id}","starred_url":"https://api.github.com/users/rushstrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rushstrike/subscriptions","organizations_url":"https://api.github.com/users/rushstrike/orgs","repos_url":"https://api.github.com/users/rushstrike/repos","events_url":"https://api.github.com/users/rushstrike/events{/privacy}","received_events_url":"https://api.github.com/users/rushstrike/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T07:58:12Z","updated_at":"2016-10-08T07:58:12Z","body":"I ran into this problem today. This is what I changed to get it to work:\r\n\tfor k, v := range user.(*jwt.Token).Claims.(jwt.MapClaims) {\r\n\t\tfmt.Fprintf(w, \"%s :\\t%#v\\n\", k, v)\r\n\t}"}}
{"actor":{"display_login":"rushstrike"}}