{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2409","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2409/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2409/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2409/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2409","id":126478527,"number":2409,"title":"Error while accessing the WsFederation endpoint","user":{"login":"rite2sanjay","id":16405079,"avatar_url":"https://avatars.githubusercontent.com/u/16405079?v=3","gravatar_id":"","url":"https://api.github.com/users/rite2sanjay","html_url":"https://github.com/rite2sanjay","followers_url":"https://api.github.com/users/rite2sanjay/followers","following_url":"https://api.github.com/users/rite2sanjay/following{/other_user}","gists_url":"https://api.github.com/users/rite2sanjay/gists{/gist_id}","starred_url":"https://api.github.com/users/rite2sanjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rite2sanjay/subscriptions","organizations_url":"https://api.github.com/users/rite2sanjay/orgs","repos_url":"https://api.github.com/users/rite2sanjay/repos","events_url":"https://api.github.com/users/rite2sanjay/events{/privacy}","received_events_url":"https://api.github.com/users/rite2sanjay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-13T18:08:22Z","updated_at":"2016-01-18T17:36:38Z","closed_at":"2016-01-17T12:46:49Z","body":"I am configuring the WsFed plugin and am getting an error when I access the metadata endpoint /wsfed/metadata.\r\n\r\nHere is the error I am encountering from identity server\r\nID3203: An error occurred while writing the metadata document. Required parameter 'entityID' is not set.\r\n\r\nAm I missing any setting? Thanks for your help.\r\n\r\nWsFed plugin options\r\nvar factory = new WsFederationServiceFactory(options.Factory);\r\nfactory.Register(new Registration<IEnumerable<RelyingParty>>(RelyingParties.Get()));\r\nfactory.RelyingPartyService = new Registration<IRelyingPartyService>(typeof(InMemoryRelyingPartyService));\r\n\r\nvar wsFedOptions = new WsFederationPluginOptions\r\n            {\r\n                EnableMetadataEndpoint = true,\r\n                IdentityServerOptions = options,\r\n                Factory = factory\r\n            };\r\n\r\nRelying party configuration\r\nnew RelyingParty\r\n                {                    \r\n                    Name = \"ADFS\",\r\n                    Enabled = true,\r\n                    Realm = \"urn:adfs\",\r\n                    IncludeAllClaimsForUser = true,\r\n                    ReplyUrl = \"https://adfsurl/adfs/ls\",\r\n                    TokenLifeTime = 1,\r\n                    ClaimMappings = new Dictionary<string, string>\r\n                    {\r\n                        { \"sub\", ClaimTypes.NameIdentifier },\r\n                        { \"name\", ClaimTypes.Name },\r\n                        { \"given_name\", ClaimTypes.GivenName },\r\n                        { \"email\", ClaimTypes.Email }\r\n                    }                    \r\n                }\r\n\r\nStackTrace:\r\nat System.IdentityModel.Metadata.MetadataSerializer.WriteEntityDescriptor(XmlWriter inputWriter, EntityDescriptor entityDescriptor)\\r\\n at System.IdentityModel.Metadata.MetadataSerializer.WriteMetadataCore(XmlWriter writer, MetadataBase metadataBase)\\r\\n at System.IdentityModel.Metadata.MetadataSerializer.WriteMetadata(XmlWriter writer, MetadataBase metadata)\\r\\n at IdentityServer3.WsFederation.Results.MetadataResult.Execute() in c:\\\\local\\\\identity\\\\server3\\\\WsFederation\\\\source\\\\WsFederationPlugin\\\\Results\\\\MetadataResult.cs:line 53\\r\\n at IdentityServer3.WsFederation.Results.MetadataResult.ExecuteAsync(CancellationToken cancellationToken) in c:\\\\local\\\\identity\\\\server3\\\\WsFederation\\\\source\\\\WsFederationPlugin\\\\Results\\\\MetadataResult.cs:line 45\\r\\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Controllers.AuthenticationFilterResult.d__0.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0\\r\\n--- End of stack trace from previous location where exception was thrown ---\\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.TaskAwaiter`1.GetResult()\\r\\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext() in c:\\\\local\\\\identity\\\\model\\\\IdentityModel\\\\source\\\\IdentityModel.Net45\\\\Identity.cs:line 0"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/172601406","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2409#issuecomment-172601406","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2409","id":172601406,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T17:36:38Z","updated_at":"2016-01-18T17:36:38Z","body":"I released a patch for this yesterday -- please try it and see if it works for you. With the patch, you shouldn't need to set the IssuerUri."}}