{"action":"opened","issue":{"url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/75","repository_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib","labels_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/75/comments","events_url":"https://api.github.com/repos/googleads/googleads-dotnet-lib/issues/75/events","html_url":"https://github.com/googleads/googleads-dotnet-lib/issues/75","id":136337021,"number":75,"title":"Crash when using the nugget in Microsoft Azure Web Apps","user":{"login":"Kreepounet","id":4639874,"avatar_url":"https://avatars.githubusercontent.com/u/4639874?v=3","gravatar_id":"","url":"https://api.github.com/users/Kreepounet","html_url":"https://github.com/Kreepounet","followers_url":"https://api.github.com/users/Kreepounet/followers","following_url":"https://api.github.com/users/Kreepounet/following{/other_user}","gists_url":"https://api.github.com/users/Kreepounet/gists{/gist_id}","starred_url":"https://api.github.com/users/Kreepounet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kreepounet/subscriptions","organizations_url":"https://api.github.com/users/Kreepounet/orgs","repos_url":"https://api.github.com/users/Kreepounet/repos","events_url":"https://api.github.com/users/Kreepounet/events{/privacy}","received_events_url":"https://api.github.com/users/Kreepounet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T09:59:16Z","updated_at":"2016-02-25T09:59:16Z","closed_at":null,"body":"There is a bug in the code that causes Azure Web Apps to crash. After some reasearch, we found a solution. In fact, the problem appears when using cryptography with UserKeySet (default value). You have to use MachineKeySet instead. Here is the the way to correct the bug.\r\n\r\nIn OAuth2ProviderBase.cs, after line 368, add this :\r\n\r\n`\r\n      cspParam.Flags = CspProviderFlags.UseMachineKeyStore;\r\n`\r\n\r\nIn OAuth2ProviderForServiceAccountsCustom.cs, replace lines 145/146 by :\r\n\r\n```\r\nX509Certificate2 jwtCertificate = new X509Certificate2(JwtCertificatePath,\r\n          JwtCertificatePassword, X509KeyStorageFlags.MachineKeySet);\r\n```\r\n\r\nI don't know if there are other changes to make because we only use service accounts."}}