{"action":"created","issue":{"url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/2","repository_url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo","labels_url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/2/comments","events_url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/2/events","html_url":"https://github.com/Rilton/IdentityServer4.Samples.Mongo/issues/2","id":228268650,"number":2,"title":"Call Api failes","user":{"login":"Gentlehag","id":4619513,"avatar_url":"https://avatars3.githubusercontent.com/u/4619513?v=3","gravatar_id":"","url":"https://api.github.com/users/Gentlehag","html_url":"https://github.com/Gentlehag","followers_url":"https://api.github.com/users/Gentlehag/followers","following_url":"https://api.github.com/users/Gentlehag/following{/other_user}","gists_url":"https://api.github.com/users/Gentlehag/gists{/gist_id}","starred_url":"https://api.github.com/users/Gentlehag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gentlehag/subscriptions","organizations_url":"https://api.github.com/users/Gentlehag/orgs","repos_url":"https://api.github.com/users/Gentlehag/repos","events_url":"https://api.github.com/users/Gentlehag/events{/privacy}","received_events_url":"https://api.github.com/users/Gentlehag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-12T11:50:07Z","updated_at":"2017-05-24T19:14:50Z","closed_at":"2017-05-24T19:14:50Z","body":"When i'm logged in and i click \"call api with user token\" ->\r\nI get unauthorized back.\r\n\r\n  IDX10501: Signature validation failed. Unable to match 'kid': '84509862e868dad806485e7e3c230244', \r\n\r\n In the client i can see:\r\n\r\n> \r\n> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware:Information: Failed to validate the token eyJhbGciOiJSUzI1NiIsImtpZCI6Ijg0NTA5ODYyZTg2OGRhZDgwNjQ4NWU3ZTNjMjMwMjQ0IiwidHlwIjoiSldUIn0.eyJuYmYiOjE0OTQ1ODk1OTUsImV4cCI6MTQ5NDU5MzE5NSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAwIiwiYXVkIjpbImh0dHA6Ly9sb2NhbGhvc3Q6NTAwMC9yZXNvdXJjZXMiLCJhcGkxIl0sImNsaWVudF9pZCI6Im12YyIsInN1YiI6IjIiLCJhdXRoX3RpbWUiOjE0OTQ1ODk1OTIsImlkcCI6ImxvY2FsIiwic2NvcGUiOlsib3BlbmlkIiwicHJvZmlsZSIsImFwaTEiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.UcBFhFGRpsLKGuR9Lr3IDpTo9IgpD72pprj-Fiw9cVXVzCH6SMri43G1RecUt8tfgqqXJRlDsB-qAodMFbUeLJdJyIvjF4bEMy-IpeYELywn1-3yX5XyzNw0YQF_5eX6NoPnl1nPjJ15dx1wrc4S5oHdRekg3hw97ElPVZc3GwTzwbtduPxZZz9SXcoTeXMXu8i-ht8yqQEmOcfX3Py2SCM7-1ULL_m7e51Jn8h-SfuinHPjoIz738evNg_14TILBiTxF93B3RpBuv1EocVaIcWV84_mGKCQxAPpHhZfVdVU_z3lywHOrBSEDpeFcWqDL0ksWF5CY2tCm4wyqbatng.\r\n> \r\n> Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match 'kid': '84509862e868dad806485e7e3c230244', \r\n> token: '{\"alg\":\"RS256\",\"typ\":\"JWT\",\"kid\":\"84509862e868dad806485e7e3c230244\"}.{\"nbf\":1494589595,\"exp\":1494593195,\"iss\":\"http://localhost:5000\",\"aud\":[\"http://localhost:5000/resources\",\"api1\"],\"client_id\":\"mvc\",\"sub\":\"2\",\"auth_time\":1494589592,\"idp\":\"local\",\"scope\":[\"openid\",\"profile\",\"api1\",\"offline_access\"],\"amr\":[\"pwd\"]}'.\r\n>    at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)\r\n>    at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)\r\n>    at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__1.MoveNext()"},"comment":{"url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/comments/303823620","html_url":"https://github.com/Rilton/IdentityServer4.Samples.Mongo/issues/2#issuecomment-303823620","issue_url":"https://api.github.com/repos/Rilton/IdentityServer4.Samples.Mongo/issues/2","id":303823620,"user":{"login":"Rilton","id":4245050,"avatar_url":"https://avatars0.githubusercontent.com/u/4245050?v=3","gravatar_id":"","url":"https://api.github.com/users/Rilton","html_url":"https://github.com/Rilton","followers_url":"https://api.github.com/users/Rilton/followers","following_url":"https://api.github.com/users/Rilton/following{/other_user}","gists_url":"https://api.github.com/users/Rilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Rilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rilton/subscriptions","organizations_url":"https://api.github.com/users/Rilton/orgs","repos_url":"https://api.github.com/users/Rilton/repos","events_url":"https://api.github.com/users/Rilton/events{/privacy}","received_events_url":"https://api.github.com/users/Rilton/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T19:14:50Z","updated_at":"2017-05-24T19:14:50Z","body":"Issue was resolved with latest commit #6250d1cbacfe5a01489442f5d1bfc05a4565a0dc\r\n"}}
{"actor":{"display_login":"Rilton"}}