{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/501","labels_url":"https://api.github.com/repos/aspnet/Security/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/501/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/501/events","html_url":"https://github.com/aspnet/Security/issues/501","id":108918023,"number":501,"title":"Fix OpenIdConnectTokenEndpointResponse to return the actual OpenIdConnectMessage","user":{"login":"PinpointTownes","id":6998306,"avatar_url":"https://avatars.githubusercontent.com/u/6998306?v=3","gravatar_id":"","url":"https://api.github.com/users/PinpointTownes","html_url":"https://github.com/PinpointTownes","followers_url":"https://api.github.com/users/PinpointTownes/followers","following_url":"https://api.github.com/users/PinpointTownes/following{/other_user}","gists_url":"https://api.github.com/users/PinpointTownes/gists{/gist_id}","starred_url":"https://api.github.com/users/PinpointTownes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PinpointTownes/subscriptions","organizations_url":"https://api.github.com/users/PinpointTownes/orgs","repos_url":"https://api.github.com/users/PinpointTownes/repos","events_url":"https://api.github.com/users/PinpointTownes/events{/privacy}","received_events_url":"https://api.github.com/users/PinpointTownes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Security/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Security/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/Security/milestones/13","html_url":"https://github.com/aspnet/Security/milestones/1.0.0-rc1","labels_url":"https://api.github.com/repos/aspnet/Security/milestones/13/labels","id":1311568,"number":13,"title":"1.0.0-rc1","description":null,"creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":19,"state":"open","created_at":"2015-09-17T22:03:39Z","updated_at":"2015-10-16T19:42:28Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-09-29T17:29:30Z","updated_at":"2015-10-16T20:09:31Z","closed_at":null,"body":"`OpenIdConnectTokenEndpointResponse` manually creates an incomplete `OpenIdConnectMessage` by extracting a few parameters from the JSON object instead of extracting all the parameters. It should be fixed to flow the complete message.\r\n\r\nCurrently, this prevent the new `SaveTokensAsClaims` feature from correctly storing the refresh token: https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectTokenEndpointResponse.cs#L17-L23\r\n\r\n/cc @Tratcher @tushargupta51 "},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/148821701","html_url":"https://github.com/aspnet/Security/issues/501#issuecomment-148821701","issue_url":"https://api.github.com/repos/aspnet/Security/issues/501","id":148821701,"user":{"login":"tushargupta51","id":803796,"avatar_url":"https://avatars.githubusercontent.com/u/803796?v=3","gravatar_id":"","url":"https://api.github.com/users/tushargupta51","html_url":"https://github.com/tushargupta51","followers_url":"https://api.github.com/users/tushargupta51/followers","following_url":"https://api.github.com/users/tushargupta51/following{/other_user}","gists_url":"https://api.github.com/users/tushargupta51/gists{/gist_id}","starred_url":"https://api.github.com/users/tushargupta51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushargupta51/subscriptions","organizations_url":"https://api.github.com/users/tushargupta51/orgs","repos_url":"https://api.github.com/users/tushargupta51/repos","events_url":"https://api.github.com/users/tushargupta51/events{/privacy}","received_events_url":"https://api.github.com/users/tushargupta51/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T20:09:31Z","updated_at":"2015-10-16T20:09:31Z","body":"@PinpointTownes All the properties in OpenIdConnectMessage are strings (except RequestType). The array properties like acr_values or ui_locales are returned as space separated string from the endpoint. I tested with this json string and it worked:\r\n            string json2 = @\"{\r\n                    \"\"tag\"\":\"\"value1\"\",\r\n                    \"\"tagObj\"\": {\r\n                            \"\"tag3\"\": value3,\r\n                            \"\"tag2\"\": value2\r\n                            }\r\n                    }\";\r\nThe object is converted to json string when using ToString() method."}}