{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/374","repository_url":"https://api.github.com/repos/AzureAD/passport-azure-ad","labels_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/374/comments","events_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/374/events","html_url":"https://github.com/AzureAD/passport-azure-ad/issues/374","id":308806313,"node_id":"MDU6SXNzdWUzMDg4MDYzMTM=","number":374,"title":"Cannot redeem authorization code","user":{"login":"nanli1022","id":22154627,"node_id":"MDQ6VXNlcjIyMTU0NjI3","avatar_url":"https://avatars0.githubusercontent.com/u/22154627?v=4","gravatar_id":"","url":"https://api.github.com/users/nanli1022","html_url":"https://github.com/nanli1022","followers_url":"https://api.github.com/users/nanli1022/followers","following_url":"https://api.github.com/users/nanli1022/following{/other_user}","gists_url":"https://api.github.com/users/nanli1022/gists{/gist_id}","starred_url":"https://api.github.com/users/nanli1022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanli1022/subscriptions","organizations_url":"https://api.github.com/users/nanli1022/orgs","repos_url":"https://api.github.com/users/nanli1022/repos","events_url":"https://api.github.com/users/nanli1022/events{/privacy}","received_events_url":"https://api.github.com/users/nanli1022/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-27T03:09:24Z","updated_at":"2018-10-17T09:07:05Z","closed_at":null,"author_association":"NONE","body":"Hi, I downloaded the sample code of Azure B2C for Nodejs Web APP but failed to run it successfully. \r\nHere's my trace:\r\n```\r\ntoken is decoded successfully\r\nworking on key\r\nPEMkey is generated\r\nclaims are received\r\nentering Strategy.prototype._authCodeFlowHandler\r\nIn _getAccessTokenBySecretOrAssertion: we are using client secret\r\nauthentication failed due to: In _authCodeFlowHandler: failed to redeem authorization code\r\n```\r\n\r\nFrom the network of browser, I can see that the id_token has been sent back successfully. In the audit log of azure b2c user, I can also see the following logs:\r\n```\r\nActivity\r\nDate : 3/26/2018, 10:59:21 PM\r\nName : Issue an id_token to the application\r\nCorrelationId : cbaa78f4-6f04-4ab6-8081-4xxxxxxxxx\r\nCategory : B2C\r\nActivity Status\r\nStatus : Success\r\nReason : N/A\r\n```\r\nPlease advise. Thanks!"},"comment":{"url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/comments/430550255","html_url":"https://github.com/AzureAD/passport-azure-ad/issues/374#issuecomment-430550255","issue_url":"https://api.github.com/repos/AzureAD/passport-azure-ad/issues/374","id":430550255,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDU1MDI1NQ==","user":{"login":"Murthy582","id":5613594,"node_id":"MDQ6VXNlcjU2MTM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5613594?v=4","gravatar_id":"","url":"https://api.github.com/users/Murthy582","html_url":"https://github.com/Murthy582","followers_url":"https://api.github.com/users/Murthy582/followers","following_url":"https://api.github.com/users/Murthy582/following{/other_user}","gists_url":"https://api.github.com/users/Murthy582/gists{/gist_id}","starred_url":"https://api.github.com/users/Murthy582/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murthy582/subscriptions","organizations_url":"https://api.github.com/users/Murthy582/orgs","repos_url":"https://api.github.com/users/Murthy582/repos","events_url":"https://api.github.com/users/Murthy582/events{/privacy}","received_events_url":"https://api.github.com/users/Murthy582/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T09:07:04Z","updated_at":"2018-10-17T09:07:04Z","author_association":"NONE","body":"In my case client secret has expired. As @nanli1022 said, I just regenerated and replaced it. It started working again."}}
{"actor":{"display_login":"Murthy582"}}