{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/852","labels_url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/852/comments","events_url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/852/events","html_url":"https://github.com/IdentityServer/Thinktecture.IdentityServer3/pull/852","id":56081887,"number":852,"title":"Fix for resource string not matching resx key invalid_scope","user":{"login":"johnkors","id":206726,"avatar_url":"https://avatars.githubusercontent.com/u/206726?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkors","html_url":"https://github.com/johnkors","followers_url":"https://api.github.com/users/johnkors/followers","following_url":"https://api.github.com/users/johnkors/following{/other_user}","gists_url":"https://api.github.com/users/johnkors/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkors/subscriptions","organizations_url":"https://api.github.com/users/johnkors/orgs","repos_url":"https://api.github.com/users/johnkors/repos","events_url":"https://api.github.com/users/johnkors/events{/privacy}","received_events_url":"https://api.github.com/users/johnkors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T20:38:55Z","updated_at":"2015-01-31T22:11:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/pulls/852","html_url":"https://github.com/IdentityServer/Thinktecture.IdentityServer3/pull/852","diff_url":"https://github.com/IdentityServer/Thinktecture.IdentityServer3/pull/852.diff","patch_url":"https://github.com/IdentityServer/Thinktecture.IdentityServer3/pull/852.patch"},"body":"The value of  MessageId.cs property ```InvalidScope ``` did not match what was in the Messages.resx. Fetching the resource for this MessageId fails.\r\n\r\nI believe this resource is unused throughout the project anyways, so do what you want with this PR :)\r\n\r\nFound this via trying to fetch all resource values from all MessageIds (but sadly without reflection!) using the DefaultLocalizationService.\r\n\r\nhttps://ci.appveyor.com/project/JohnKorsnes/identityserver3-contrib-localization/build/0.1.4/tests\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/comments/72339440","html_url":"https://github.com/IdentityServer/Thinktecture.IdentityServer3/pull/852#issuecomment-72339440","issue_url":"https://api.github.com/repos/IdentityServer/Thinktecture.IdentityServer3/issues/852","id":72339440,"user":{"login":"johnkors","id":206726,"avatar_url":"https://avatars.githubusercontent.com/u/206726?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkors","html_url":"https://github.com/johnkors","followers_url":"https://api.github.com/users/johnkors/followers","following_url":"https://api.github.com/users/johnkors/following{/other_user}","gists_url":"https://api.github.com/users/johnkors/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkors/subscriptions","organizations_url":"https://api.github.com/users/johnkors/orgs","repos_url":"https://api.github.com/users/johnkors/repos","events_url":"https://api.github.com/users/johnkors/events{/privacy}","received_events_url":"https://api.github.com/users/johnkors/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T22:11:17Z","updated_at":"2015-01-31T22:11:17Z","body":"There are several others that also have mismatch between the T4 ids and what is actually passed to the localization service at run time. \r\n\r\n![defaultlocalizationtests](https://cloud.githubusercontent.com/assets/206726/5989987/6d4d2e18-a99c-11e4-91a4-bfcb52f9df35.PNG)\r\n\r\nExample: the T4 says the id to use is ```OpenId_DisplayName```, while ```openid_DisplayName``` is passed at runtime. \r\n![scopesmismatchwt4](https://cloud.githubusercontent.com/assets/206726/5989993/bcce9a58-a99c-11e4-8eb2-9cc1a3717bbf.PNG)\r\n\r\nhttps://github.com/IdentityServer/Thinktecture.IdentityServer3/blob/master/source/Core/Resources/T4resx.cs#L61\r\n\r\nhttps://github.com/IdentityServer/Thinktecture.IdentityServer3/blob/master/source/Core/Resources/Scopes.Designer.cs#L104\r\n\r\nThe embedded resx files in idsrv are using the lowercase ids, and not the ones from the T4, so it works for the default localization service. \r\n\r\nShould implementors of the ILocalizationService use the T4 but ignore the casing of the provided public ids? Or do you think of this as a bug and it should be fixed in idsrv?\r\n\r\nI'll create a workaround for now in the contrib project using a internal all lowercased resx lookup for all ids."}}