{"action":"created","issue":{"url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/177","repository_url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders","labels_url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/177/comments","events_url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/177/events","html_url":"https://github.com/TerribleDev/OwinOAuthProviders/issues/177","id":175779268,"number":177,"title":"400 Bad Request on Salesforce Token Endpoint","user":{"login":"kevin-verpoort","id":16717405,"avatar_url":"https://avatars.githubusercontent.com/u/16717405?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-verpoort","html_url":"https://github.com/kevin-verpoort","followers_url":"https://api.github.com/users/kevin-verpoort/followers","following_url":"https://api.github.com/users/kevin-verpoort/following{/other_user}","gists_url":"https://api.github.com/users/kevin-verpoort/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-verpoort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-verpoort/subscriptions","organizations_url":"https://api.github.com/users/kevin-verpoort/orgs","repos_url":"https://api.github.com/users/kevin-verpoort/repos","events_url":"https://api.github.com/users/kevin-verpoort/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-verpoort/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T15:07:06Z","updated_at":"2016-11-23T07:55:24Z","closed_at":"2016-11-23T07:55:24Z","body":"Whenever a post is being done to the token endpoint, e.g.:\n  \"https://**_.**_.force.com/services/oauth2/token\"\nin:\n  AuthenticateCoreAsync()\nin:\n  SalesforceAuthenticationHandler the following error is returned:\n\n...the following error comes back:\nStatusCode: 400, ReasonPhrase: 'Bad Request'\n\nWhen using postman to make a post with the same values to the same endpoint a response is being received.\n"},"comment":{"url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/comments/262451701","html_url":"https://github.com/TerribleDev/OwinOAuthProviders/issues/177#issuecomment-262451701","issue_url":"https://api.github.com/repos/TerribleDev/OwinOAuthProviders/issues/177","id":262451701,"user":{"login":"kevin-verpoort","id":16717405,"avatar_url":"https://avatars.githubusercontent.com/u/16717405?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-verpoort","html_url":"https://github.com/kevin-verpoort","followers_url":"https://api.github.com/users/kevin-verpoort/followers","following_url":"https://api.github.com/users/kevin-verpoort/following{/other_user}","gists_url":"https://api.github.com/users/kevin-verpoort/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-verpoort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-verpoort/subscriptions","organizations_url":"https://api.github.com/users/kevin-verpoort/orgs","repos_url":"https://api.github.com/users/kevin-verpoort/repos","events_url":"https://api.github.com/users/kevin-verpoort/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-verpoort/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T07:55:24Z","updated_at":"2016-11-23T07:55:24Z","body":"The problem is resolved when adding this line:\r\nServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;  \r\n\r\nAbove my:\r\n\"app.UseSalesforceAuthentication(options);\" call.\r\n\r\nMy Salesforce environment is not accepting older TLS protocols anymore.\r\nHope this helps someone."}}
{"actor":{"display_login":"kevin-verpoort"}}