{"action":"closed","issue":{"url":"https://api.github.com/repos/matik12/aurelia-oauth/issues/5","repository_url":"https://api.github.com/repos/matik12/aurelia-oauth","labels_url":"https://api.github.com/repos/matik12/aurelia-oauth/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/matik12/aurelia-oauth/issues/5/comments","events_url":"https://api.github.com/repos/matik12/aurelia-oauth/issues/5/events","html_url":"https://github.com/matik12/aurelia-oauth/issues/5","id":185807749,"number":5,"title":"jwt-token-service can't handle facebook tokens","user":{"login":"PeterWone","id":5498936,"avatar_url":"https://avatars.githubusercontent.com/u/5498936?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterWone","html_url":"https://github.com/PeterWone","followers_url":"https://api.github.com/users/PeterWone/followers","following_url":"https://api.github.com/users/PeterWone/following{/other_user}","gists_url":"https://api.github.com/users/PeterWone/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterWone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterWone/subscriptions","organizations_url":"https://api.github.com/users/PeterWone/orgs","repos_url":"https://api.github.com/users/PeterWone/repos","events_url":"https://api.github.com/users/PeterWone/events{/privacy}","received_events_url":"https://api.github.com/users/PeterWone/received_events","type":"User","site_admin":false},"labels":[{"id":418428688,"url":"https://api.github.com/repos/matik12/aurelia-oauth/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-27T23:47:39Z","updated_at":"2016-11-13T17:07:15Z","closed_at":"2016-11-13T17:07:15Z","body":"Facebook tokens are not base64 encoded JWT.\n\nYou decode them like this:\n\n```\nGET graph.facebook.com/debug_token?\n     input_token={token-to-inspect}\n     &access_token={app-token-or-admin-token}\n```\n\nThe problem with that is it's asynchronous. I tried rewriting the jwtTokenService so that createToken returns immediately with a token containing a null value for getJwtClaims and getJwtClaims fills closes over the IOAuthTokenData object and fills in the missing values as soon as they are ready. But this is not enough, whatever is using the claims needs to wait for the values to be provided and I have yet to figure out where to make that change.\n"}}
{"actor":{"display_login":"matik12"}}