{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1137","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1137/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1137/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1137/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1137","id":65359317,"number":1137,"title":"Identity Server V3 for Multiple ADFS integration","user":{"login":"kunalchandratre1","id":8287325,"avatar_url":"https://avatars.githubusercontent.com/u/8287325?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalchandratre1","html_url":"https://github.com/kunalchandratre1","followers_url":"https://api.github.com/users/kunalchandratre1/followers","following_url":"https://api.github.com/users/kunalchandratre1/following{/other_user}","gists_url":"https://api.github.com/users/kunalchandratre1/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalchandratre1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalchandratre1/subscriptions","organizations_url":"https://api.github.com/users/kunalchandratre1/orgs","repos_url":"https://api.github.com/users/kunalchandratre1/repos","events_url":"https://api.github.com/users/kunalchandratre1/events{/privacy}","received_events_url":"https://api.github.com/users/kunalchandratre1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T03:56:20Z","updated_at":"2015-03-31T04:14:25Z","closed_at":null,"body":"I am working on mvc based application to integrate with wsfederation as external provider. On About action of HomeController I have provided [Authorize] attribute. So if user clicks on about, he should get redirected to identity server login and this is happening. Plus login page have adfs option shown. So far so good.\r\nAfter user logs in with domain credentials,  I m not getting redirected to about page to show the claims. As of now again logon screen appears. Also I would like to retrieve claims from in memory identity server to About view. So do I need CustomUserService here? Can you please guide me here.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/87929202","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1137#issuecomment-87929202","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1137","id":87929202,"user":{"login":"kunalchandratre1","id":8287325,"avatar_url":"https://avatars.githubusercontent.com/u/8287325?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalchandratre1","html_url":"https://github.com/kunalchandratre1","followers_url":"https://api.github.com/users/kunalchandratre1/followers","following_url":"https://api.github.com/users/kunalchandratre1/following{/other_user}","gists_url":"https://api.github.com/users/kunalchandratre1/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalchandratre1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalchandratre1/subscriptions","organizations_url":"https://api.github.com/users/kunalchandratre1/orgs","repos_url":"https://api.github.com/users/kunalchandratre1/repos","events_url":"https://api.github.com/users/kunalchandratre1/events{/privacy}","received_events_url":"https://api.github.com/users/kunalchandratre1/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T04:14:25Z","updated_at":"2015-03-31T04:14:25Z","body":"Here is my startup.cs - \r\npublic class Startup\r\n    {\r\n        public void Configuration(IAppBuilder app)\r\n        {\r\n            LogProvider.SetCurrentLogProvider(new DiagnosticsTraceLogProvider());\r\n\r\n            AntiForgeryConfig.UniqueClaimTypeIdentifier = Constants.ClaimTypes.Subject;\r\n            JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>();\r\n\r\n            Thinktecture.IdentityServer.Core.Configuration.AuthenticationOptions authenticationOption = new Thinktecture.IdentityServer.Core.Configuration.AuthenticationOptions();\r\n            authenticationOption.IdentityProviders = ConfigureIdentityProviders;\r\n            \r\n            //cerate factory for identity server v3\r\n            var factory = InMemoryFactory.Create(\r\n                        users: Users.Get(),\r\n                        clients: Clients.Get(),\r\n                        scopes: StandardScopes.All\r\n                        );\r\n            var userService = new ExternalRegistrationUserService();\r\n            factory.UserService = new Registration<Thinktecture.IdentityServer.Core.Services.IUserService>(userService);\r\n\r\n            app.Map(\"/identity\", idsrvApp =>\r\n            {\r\n                idsrvApp.UseIdentityServer(new IdentityServerOptions\r\n                {\r\n                    SiteName = \"Embedded IdentityServer\",\r\n                    SigningCertificate = LoadCertificate(),\r\n                    IssuerUri = \"https://localhost:44306/\",\r\n                    Factory = factory,                    \r\n                   AuthenticationOptions = authenticationOption,\r\n                    CorsPolicy = CorsPolicy.AllowAll\r\n                });\r\n            });                       \r\n        }\r\n\r\n        X509Certificate2 LoadCertificate()\r\n        {\r\n            ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)\r\n            { return true; };\r\n\r\n            return new X509Certificate2(\r\n                string.Format(@\"{0}\\bin\\IdentityServer\\idsrv3test.pfx\", AppDomain.CurrentDomain.BaseDirectory), \"idsrv3test\");\r\n        }\r\n\r\n        public static void ConfigureIdentityProviders(IAppBuilder app, string signInAsType)\r\n        {\r\n            var adfs = new WsFederationAuthenticationOptions\r\n            {\r\n                AuthenticationType = \"adfs\",\r\n                Caption = \"My 1 ADFS\",\r\n                SignInAsAuthenticationType = signInAsType,\r\n                \r\n                MetadataAddress = \"https://MyADFS.cloudapp.net/FederationMetadata/2007-06/FederationMetadata.xml\",\r\n                \r\n                //Wtrealm = \"urn:idsrv3\"\r\n                Wtrealm = \"https://localhost:44306/identity\",\r\n           //    Wreply = \"https://localhost:44306/home/about\"                \r\n            };\r\n            app.UseWsFederationAuthentication(adfs);            \r\n        }\r\n    }\r\n\r\nNot sure if I am missing to add relying party in this. If yes where do I add it? In the ConfigureIdentityProviders or while creating in memory factory.\r\n"}}