{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184","id":349253069,"node_id":"MDU6SXNzdWUzNDkyNTMwNjk=","number":1184,"title":"AdalSilentTokenAcquisitionException on consent required","user":{"login":"bretthackermsft","id":24515695,"node_id":"MDQ6VXNlcjI0NTE1Njk1","avatar_url":"https://avatars0.githubusercontent.com/u/24515695?v=4","gravatar_id":"","url":"https://api.github.com/users/bretthackermsft","html_url":"https://github.com/bretthackermsft","followers_url":"https://api.github.com/users/bretthackermsft/followers","following_url":"https://api.github.com/users/bretthackermsft/following{/other_user}","gists_url":"https://api.github.com/users/bretthackermsft/gists{/gist_id}","starred_url":"https://api.github.com/users/bretthackermsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretthackermsft/subscriptions","organizations_url":"https://api.github.com/users/bretthackermsft/orgs","repos_url":"https://api.github.com/users/bretthackermsft/repos","events_url":"https://api.github.com/users/bretthackermsft/events{/privacy}","received_events_url":"https://api.github.com/users/bretthackermsft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-09T19:08:37Z","updated_at":"2018-10-10T19:18:53Z","closed_at":null,"author_association":"NONE","body":"Having added another API to a previously consented app registration, I'd like to monitor for exceptions and redirect the user to re-consent. However the error that's thrown(AdalSilentTokenAcquisitionException) indicates that no token was found in the cache, while the inner exception (AdalServiceException) correctly notes that the user hasn't consented. Would it be possible for that inner exception to be re-thrown so we don't have to inspect? The problem in this situation is being mis-identified: there WAS a token in the cache.\r\n![adalexception](https://user-images.githubusercontent.com/24515695/43920129-ac0f32ae-9bdd-11e8-8258-d5ba58a7546e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/comments/428698116","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184#issuecomment-428698116","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/1184","id":428698116,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODY5ODExNg==","user":{"login":"jmprieur","id":13203188,"node_id":"MDQ6VXNlcjEzMjAzMTg4","avatar_url":"https://avatars0.githubusercontent.com/u/13203188?v=4","gravatar_id":"","url":"https://api.github.com/users/jmprieur","html_url":"https://github.com/jmprieur","followers_url":"https://api.github.com/users/jmprieur/followers","following_url":"https://api.github.com/users/jmprieur/following{/other_user}","gists_url":"https://api.github.com/users/jmprieur/gists{/gist_id}","starred_url":"https://api.github.com/users/jmprieur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmprieur/subscriptions","organizations_url":"https://api.github.com/users/jmprieur/orgs","repos_url":"https://api.github.com/users/jmprieur/repos","events_url":"https://api.github.com/users/jmprieur/events{/privacy}","received_events_url":"https://api.github.com/users/jmprieur/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T19:18:53Z","updated_at":"2018-10-10T19:18:53Z","author_association":"CONTRIBUTOR","body":"@bretthackermsft : I don't know if this is an option for you to update to MSAL.NET, but from MSAL.NET 2.2.0, we now expose the body in the MsalServiceException in addition to the HttpResponseHeaders, which should solve your issue?"}}
{"actor":{"display_login":"jmprieur"}}