{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/107","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/107/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/107/events","html_url":"https://github.com/IdentityServer/IdentityServer3.Samples/issues/107","id":64450424,"number":107,"title":"The sample code with \"Simplest OAuth2 Walkthrough\" didn't work","user":{"login":"zhangkefeng2010","id":7343086,"avatar_url":"https://avatars.githubusercontent.com/u/7343086?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangkefeng2010","html_url":"https://github.com/zhangkefeng2010","followers_url":"https://api.github.com/users/zhangkefeng2010/followers","following_url":"https://api.github.com/users/zhangkefeng2010/following{/other_user}","gists_url":"https://api.github.com/users/zhangkefeng2010/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangkefeng2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangkefeng2010/subscriptions","organizations_url":"https://api.github.com/users/zhangkefeng2010/orgs","repos_url":"https://api.github.com/users/zhangkefeng2010/repos","events_url":"https://api.github.com/users/zhangkefeng2010/events{/privacy}","received_events_url":"https://api.github.com/users/zhangkefeng2010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T06:23:39Z","updated_at":"2015-03-26T07:01:43Z","closed_at":null,"body":"I have configuration example code, the server have been running, but the client code can't work, as related to the https. see error message.\r\nDid I miss something important?\r\n\r\n\r\n\r\nSystem.AggregateException was unhandled\r\n  HResult=-2146233088\r\n  Message=One or more errors occurred.\r\n  Source=mscorlib\r\n  StackTrace:\r\n       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n       at System.Threading.Tasks.Task`1.get_Result()\r\n       at Client.Program.GetClientToken() in c:\\Users\\jeck.zhang\\Documents\\Visual Studio 2013\\Projects\\IdentityServer3.Samples-master\\source\\Simplest OAuth2 Walkthrough\\Client\\Program.cs:line 33\r\n       at Client.Program.Main(String[] args) in c:\\Users\\jeck.zhang\\Documents\\Visual Studio 2013\\Projects\\IdentityServer3.Samples-master\\source\\Simplest OAuth2 Walkthrough\\Client\\Program.cs:line 11\r\n       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)\r\n       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n       at System.Threading.ThreadHelper.ThreadStart()\r\n  InnerException: System.Net.Http.HttpRequestException\r\n       HResult=-2146233088\r\n       Message=An error occurred while sending the request.\r\n       Source=mscorlib\r\n       StackTrace:\r\n            at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n            at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\r\n            at Thinktecture.IdentityModel.Client.OAuth2Client.<RequestAsync>d__a.MoveNext() in c:\\etc\\Dropbox\\thinktecture\\IdentityModel\\source\\Client\\OAuth2Client.cs:line 277\r\n       InnerException: System.Net.WebException\r\n            HResult=-2146233079\r\n            Message=The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\r\n            Source=System\r\n            StackTrace:\r\n                 at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)\r\n                 at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)\r\n            InnerException: System.Security.Authentication.AuthenticationException\r\n                 HResult=-2146233087\r\n                 Message=The remote certificate is invalid according to the validation procedure.\r\n                 Source=System\r\n                 StackTrace:\r\n                      at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)\r\n                      at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)\r\n                      at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)\r\n                 InnerException: \r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/comments/86364393","html_url":"https://github.com/IdentityServer/IdentityServer3.Samples/issues/107#issuecomment-86364393","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/107","id":86364393,"user":{"login":"zhangkefeng2010","id":7343086,"avatar_url":"https://avatars.githubusercontent.com/u/7343086?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangkefeng2010","html_url":"https://github.com/zhangkefeng2010","followers_url":"https://api.github.com/users/zhangkefeng2010/followers","following_url":"https://api.github.com/users/zhangkefeng2010/following{/other_user}","gists_url":"https://api.github.com/users/zhangkefeng2010/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangkefeng2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangkefeng2010/subscriptions","organizations_url":"https://api.github.com/users/zhangkefeng2010/orgs","repos_url":"https://api.github.com/users/zhangkefeng2010/repos","events_url":"https://api.github.com/users/zhangkefeng2010/events{/privacy}","received_events_url":"https://api.github.com/users/zhangkefeng2010/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T07:01:43Z","updated_at":"2015-03-26T07:01:43Z","body":"When i remove Https in Server and Client, they are work."}}