{"action":"created","issue":{"url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/754","labels_url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/754/comments","events_url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/754/events","html_url":"https://github.com/thinktecture/Thinktecture.IdentityServer.v3/issues/754","id":54198693,"number":754,"title":"Client Ip Address int IUserService","user":{"login":"imperugo","id":758620,"avatar_url":"https://avatars.githubusercontent.com/u/758620?v=3","gravatar_id":"","url":"https://api.github.com/users/imperugo","html_url":"https://github.com/imperugo","followers_url":"https://api.github.com/users/imperugo/followers","following_url":"https://api.github.com/users/imperugo/following{/other_user}","gists_url":"https://api.github.com/users/imperugo/gists{/gist_id}","starred_url":"https://api.github.com/users/imperugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperugo/subscriptions","organizations_url":"https://api.github.com/users/imperugo/orgs","repos_url":"https://api.github.com/users/imperugo/repos","events_url":"https://api.github.com/users/imperugo/events{/privacy}","received_events_url":"https://api.github.com/users/imperugo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T14:21:54Z","updated_at":"2015-01-13T14:35:53Z","closed_at":null,"body":"Hi, \r\ninto my IUserService I need to check the IP address of the user and do some stuff (i.e: I can allow only users who come from a specific ip range, otherwise no login with a specific message).\r\n\r\nWhat is the best way to get the clientIP into IUserService (AuthenticateLocalAsync in my case)?\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/comments/69752505","html_url":"https://github.com/thinktecture/Thinktecture.IdentityServer.v3/issues/754#issuecomment-69752505","issue_url":"https://api.github.com/repos/thinktecture/Thinktecture.IdentityServer.v3/issues/754","id":69752505,"user":{"login":"imperugo","id":758620,"avatar_url":"https://avatars.githubusercontent.com/u/758620?v=3","gravatar_id":"","url":"https://api.github.com/users/imperugo","html_url":"https://github.com/imperugo","followers_url":"https://api.github.com/users/imperugo/followers","following_url":"https://api.github.com/users/imperugo/following{/other_user}","gists_url":"https://api.github.com/users/imperugo/gists{/gist_id}","starred_url":"https://api.github.com/users/imperugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperugo/subscriptions","organizations_url":"https://api.github.com/users/imperugo/orgs","repos_url":"https://api.github.com/users/imperugo/repos","events_url":"https://api.github.com/users/imperugo/events{/privacy}","received_events_url":"https://api.github.com/users/imperugo/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T14:35:53Z","updated_at":"2015-01-13T14:35:53Z","body":"Hi @leastprivilege \r\nbut what about singleton lifecycle? IUserService is a singleton right?\r\n\r\nfactory.UserService = new Registration<IUserService>(userService);\r\n\r\nIf I inject OwinEnvironmentService into it will be always the same for all the requests, with obvious problems.\r\n\r\nAm I wrong?"}}