{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/165","labels_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/165/comments","events_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/165/events","html_url":"https://github.com/IdentityManager/IdentityManager/issues/165","id":110164275,"number":165,"title":"To use IdentityServer login page for HostSecurityConfiguration in IdentityManager","user":{"login":"WassMM","id":13963337,"avatar_url":"https://avatars.githubusercontent.com/u/13963337?v=3","gravatar_id":"","url":"https://api.github.com/users/WassMM","html_url":"https://github.com/WassMM","followers_url":"https://api.github.com/users/WassMM/followers","following_url":"https://api.github.com/users/WassMM/following{/other_user}","gists_url":"https://api.github.com/users/WassMM/gists{/gist_id}","starred_url":"https://api.github.com/users/WassMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WassMM/subscriptions","organizations_url":"https://api.github.com/users/WassMM/orgs","repos_url":"https://api.github.com/users/WassMM/repos","events_url":"https://api.github.com/users/WassMM/events{/privacy}","received_events_url":"https://api.github.com/users/WassMM/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-07T07:04:06Z","updated_at":"2016-02-02T08:35:47Z","closed_at":null,"body":"Hello,\r\n\r\nWe used OAuth2Configuration in old version and it worked fine. I updated version and as I understand I should use different way for configuration that - HostSecurityConfiguration. This is my code (I changed a bit membership solution from the project):\r\n`\r\npublic class Startup\r\n    {\r\n        public void Configuration(IAppBuilder app)\r\n        {\r\n            LogProvider.SetCurrentLogProvider(new TraceSourceLogProvider());\r\n\r\n\t\t\tapp.UseCookieAuthentication(new CookieAuthenticationOptions\r\n\t\t\t{\r\n\t\t\t\tAuthenticationType = \"Cookies\",\r\n\t\t\t});\r\n\r\n            var factory = new IdentityManagerServiceFactory();\r\n            factory.Configure(\"CustomMembershipReboot\");\r\n\r\n\t\t\tapp.Map(\"/idMgr\", idmng =>\r\n\t\t\t{\r\n\t\t\t\tidmng.UseIdentityManager(new IdentityManagerOptions()\r\n\t\t\t\t{\r\n\t\t\t\t\tFactory = factory,\r\n\t\t\t\t\tSecurityConfiguration = new HostSecurityConfiguration()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tAdminRoleName = \"admin\",\r\n\t\t\t\t\t\tHostAuthenticationType = \"Cookies\",\r\n\t\t\t\t\t\tRoleClaimType = \"role\",\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\t// This is identity server part\r\n\t\t\tapp.Map(string.Empty, idsrvApp =>\r\n\t\t\t{\r\n\t\t\t\tvar factoryt = new IdentityServerServiceFactory();\r\n\t\t\t\tfactoryt.UseInMemoryClients(new List<Client>() { new Client(){ ClientName = \"clientName\", ClientId = \"clientId\"} });\r\n\t\t\t\tfactoryt.UseInMemoryScopes(new List<Scope> { new Scope() { Name = \"scope1\" } });\r\n\t\t\t\tfactoryt.UseInMemoryUsers(new List<InMemoryUser> { new InMemoryUser(){ Username = \"username\", Password = \"secret\"} });\r\n\r\n\t\t\t\tidsrvApp.UseIdentityServer(new IdentityServerOptions\r\n\t\t\t\t{\r\n\t\t\t\t\tFactory = factoryt,\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t});\r\n        }\r\n    }\r\n`\r\n\r\nI click Login button and the code redirects me to :\r\nhttps://localhost:44339/idMgr/authorize?state=911913376410994&client_id=idmgr&response_type=token\r\n\r\nand my browser shows blank page because of 401 Http status.\r\n\r\nMain question. Could you recommend me any example which uses IdentityServer login page for IdentityManager? Second question. Even if I would resolve the 401 problem then I see already that client_id is not what I use for IdentityManager, is it possible to change it? It was before for OAuth2Configuration - the class has ClientID property.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/comments/178444301","html_url":"https://github.com/IdentityManager/IdentityManager/issues/165#issuecomment-178444301","issue_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/165","id":178444301,"user":{"login":"Bidou44","id":5153523,"avatar_url":"https://avatars.githubusercontent.com/u/5153523?v=3","gravatar_id":"","url":"https://api.github.com/users/Bidou44","html_url":"https://github.com/Bidou44","followers_url":"https://api.github.com/users/Bidou44/followers","following_url":"https://api.github.com/users/Bidou44/following{/other_user}","gists_url":"https://api.github.com/users/Bidou44/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidou44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidou44/subscriptions","organizations_url":"https://api.github.com/users/Bidou44/orgs","repos_url":"https://api.github.com/users/Bidou44/repos","events_url":"https://api.github.com/users/Bidou44/events{/privacy}","received_events_url":"https://api.github.com/users/Bidou44/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T08:35:47Z","updated_at":"2016-02-02T08:35:47Z","body":"On my side it is still not working. What really strange is, is that the samples are also not working... not sure what I'm doing wrong!? With the sample, when I log in with \"alice\"/\"alice\", I get the follwing error message: \"You are not authorized to use this service.\""}}