{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/planb-provider/issues/40","repository_url":"https://api.github.com/repos/zalando/planb-provider","labels_url":"https://api.github.com/repos/zalando/planb-provider/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/zalando/planb-provider/issues/40/comments","events_url":"https://api.github.com/repos/zalando/planb-provider/issues/40/events","html_url":"https://github.com/zalando/planb-provider/issues/40","id":136937050,"number":40,"title":"Reduce JWT token size","user":{"login":"hjacobs","id":510328,"avatar_url":"https://avatars.githubusercontent.com/u/510328?v=3","gravatar_id":"","url":"https://api.github.com/users/hjacobs","html_url":"https://github.com/hjacobs","followers_url":"https://api.github.com/users/hjacobs/followers","following_url":"https://api.github.com/users/hjacobs/following{/other_user}","gists_url":"https://api.github.com/users/hjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/hjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjacobs/subscriptions","organizations_url":"https://api.github.com/users/hjacobs/orgs","repos_url":"https://api.github.com/users/hjacobs/repos","events_url":"https://api.github.com/users/hjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/hjacobs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zalando/planb-provider/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"hjacobs","id":510328,"avatar_url":"https://avatars.githubusercontent.com/u/510328?v=3","gravatar_id":"","url":"https://api.github.com/users/hjacobs","html_url":"https://github.com/hjacobs","followers_url":"https://api.github.com/users/hjacobs/followers","following_url":"https://api.github.com/users/hjacobs/following{/other_user}","gists_url":"https://api.github.com/users/hjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/hjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjacobs/subscriptions","organizations_url":"https://api.github.com/users/hjacobs/orgs","repos_url":"https://api.github.com/users/hjacobs/repos","events_url":"https://api.github.com/users/hjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/hjacobs/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-27T16:18:11Z","updated_at":"2016-02-27T18:25:58Z","closed_at":null,"body":"Current (test) token looks like:\r\n\r\n```\r\neyJraWQiOiJ0ZXN0LWVzMjU2IiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiIxMjM0NTY3ODkiLCJ1aWQiOiIxMjM0NTY3ODkiLCJzY29wZSI6WyJ1aWQiXSwiaXNzIjoiUGxhbkIiLCJyZWFsbSI6IlwvY3VzdG9tZXJzIiwiZXhwIjoxNDU2NjE3OTAxLCJpYXQiOjE0NTY1ODkxMDF9.Yay7sRRl8rEsHSK01ZMo3GDG9_MdYFfPOZIWsBQ9KiXJReiKLxU4S0K8i82POgiqy9ZOtjuGgdxw5mYu4TXdIA\r\n```\r\n\r\nThese are 314 characters.\r\n\r\nThe header contains:\r\n\r\n```json\r\n{\"kid\":\"test-es256\",\"typ\":\"JWT\",\"alg\":\"ES256\"}\r\n```\r\n\r\nThe payload contains:\r\n\r\n```json\r\n{\"sub\":\"123456789\",\"uid\":\"123456789\",\"scope\":[\"uid\"],\"iss\":\"PlanB\",\"realm\":\"\\/customers\",\"exp\":1456617901,\"iat\":1456589101}\r\n```\r\n\r\n=> We can remove the \"uid\" claim as the UID (or customer number) is already contained in the JWT subject (\"sub\")."},"comment":{"url":"https://api.github.com/repos/zalando/planb-provider/issues/comments/189699100","html_url":"https://github.com/zalando/planb-provider/issues/40#issuecomment-189699100","issue_url":"https://api.github.com/repos/zalando/planb-provider/issues/40","id":189699100,"user":{"login":"hjacobs","id":510328,"avatar_url":"https://avatars.githubusercontent.com/u/510328?v=3","gravatar_id":"","url":"https://api.github.com/users/hjacobs","html_url":"https://github.com/hjacobs","followers_url":"https://api.github.com/users/hjacobs/followers","following_url":"https://api.github.com/users/hjacobs/following{/other_user}","gists_url":"https://api.github.com/users/hjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/hjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjacobs/subscriptions","organizations_url":"https://api.github.com/users/hjacobs/orgs","repos_url":"https://api.github.com/users/hjacobs/repos","events_url":"https://api.github.com/users/hjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/hjacobs/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T18:25:58Z","updated_at":"2016-02-27T18:25:58Z","body":"We still have an unnecessary backslash escape for the forward slash (\"/\") --- we should get rid of it..."}}