{"action":"closed","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/418","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/418/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/418/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/418","id":183167423,"number":418,"title":"adal.js failing to parse Azure B2C AD token","user":{"login":"360oncology","id":22622211,"avatar_url":"https://avatars.githubusercontent.com/u/22622211?v=3","gravatar_id":"","url":"https://api.github.com/users/360oncology","html_url":"https://github.com/360oncology","followers_url":"https://api.github.com/users/360oncology/followers","following_url":"https://api.github.com/users/360oncology/following{/other_user}","gists_url":"https://api.github.com/users/360oncology/gists{/gist_id}","starred_url":"https://api.github.com/users/360oncology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/360oncology/subscriptions","organizations_url":"https://api.github.com/users/360oncology/orgs","repos_url":"https://api.github.com/users/360oncology/repos","events_url":"https://api.github.com/users/360oncology/events{/privacy}","received_events_url":"https://api.github.com/users/360oncology/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T22:53:53Z","updated_at":"2016-10-20T19:25:21Z","closed_at":"2016-10-20T19:25:21Z","body":"We have client code using \"oid\" for Azure B2C AD parsed by adal.js and it stopped working without any changes. We are suspecting that there might be an issue with token that we are getting from Azure AD. \r\nWe noticed \"fQ\" instead of \"}\" in value for \"kid\" field in decoded AD token and probably because of that AuthenticationContext.prototype._decode() method in adal.js is returning junk for all values after kid in parsed object. Can somebody confirm if this can be a bug in adal.js or Azure AD team may need to fix generated token?\r\n\r\nBelow is Base64 decoded token, \r\n{\"typ\":\"JWT\",\"alg\":\"RS256\",\"kid\":\"PftplvUMzdPZ8QgwW82Ss9Qbgxq5CgHbKYIH3dLkfsI\"fQ.{\"exp\":1476485886,\"nbf\":1476482286,\"ver\":\"1.0\",\"iss\":\"https://login.microsoftonline.com/b84084c7-56bd-4593-8114-816f27b0c70f/\",\"sub\":\"Not supported currently. Use oid claim.\",\"aud\":\"93cc5b3f-a809-4efc-a12e-8432bbccd2ec\",\"acr\":\"b2c_1_si\",\"nonce\":\"622ccce0-0f36-4d7c-b41f-e62d42c53cc0\",\"iat\":1476482286,\"auth_time\":1476482286,\"oid\":\"079e9ad2-cf5b-4c49-9da3-6891a86f7bb4\"}\r\n\r\n"}}
{"actor":{"display_login":"tushargupta51"}}