)]}'
{"keystone/tests/test_backend_sql.py":[{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"ab7134248e003093d5aab327cebf62adc0dfb8a0","unresolved":false,"context_lines":[{"line_number":408,"context_line":""},{"line_number":409,"context_line":"        user_domains \u003d self.assignment_api.list_domains_for_user(user[\u0027id\u0027])"},{"line_number":410,"context_line":"        # TODO(henry-nash): There *should* be no domains in the list since both"},{"line_number":411,"context_line":"        # grants were inherited (and hence only applied to projects within the"},{"line_number":412,"context_line":"        # domain). However, incorrectly, both are returned due to bug #1390640."},{"line_number":413,"context_line":"        self.assertThat(user_domains, matchers.HasLength(2))"},{"line_number":414,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_59323b11","line":411,"updated":"2014-11-12 07:57:42.000000000","message":"so if there was a project in that domain, would the user have the role? or would that need to be specified at the user (or group) assignment level?","commit_id":"1300ec8563ad00340da89bf54e745111c3e1350c"},{"author":{"_account_id":5707,"name":"Henry Nash","email":"henryn@linux.vnet.ibm.com","username":"henry-nash"},"change_message_id":"f890e3a696ee8fbf4ef3534dbd17ce1096a064bf","unresolved":false,"context_lines":[{"line_number":408,"context_line":""},{"line_number":409,"context_line":"        user_domains \u003d self.assignment_api.list_domains_for_user(user[\u0027id\u0027])"},{"line_number":410,"context_line":"        # TODO(henry-nash): There *should* be no domains in the list since both"},{"line_number":411,"context_line":"        # grants were inherited (and hence only applied to projects within the"},{"line_number":412,"context_line":"        # domain). However, incorrectly, both are returned due to bug #1390640."},{"line_number":413,"context_line":"        self.assertThat(user_domains, matchers.HasLength(2))"},{"line_number":414,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_6e3806a1","line":411,"in_reply_to":"5a890539_59323b11","updated":"2014-11-12 10:04:13.000000000","message":"So list_domains_for_user() is used to satisfy /auth/domains when a user_id is specified.  Now I\u0027m assuming (!), that the intention is for this to return those domains for which the user could get a domain scoped token (in the same way that /auth/projects does for projects).  The only way you are permitted to get a domain scoped token is if you have an actual role on the domain itself - ones inherited to projects don\u0027t count (since they are not actually active on the domain).  Hence, irrespective of whether there were projects in this domain, a user that ONLY has inherited roles assigned to it shouldn\u0027t be able to get a domain-scoped token, hence those domains should not be listed in /auth/domains. (The would, of course, be able to get a project-scoped token to one of the projects in the domain).\n\nHowever, it does occur to me that there might be a need for some /auth/domains?\u003csomething\u003e, that indicates the domains on which a user/group has any (e.g. domain or project)...but I don\u0027t think that\u0027s we currently support.  Also, even if we had this, I\u0027m not sure it helps you authenticate...since you might have the role on just one project in the domain...so how would you know what to ask for next?  This feels outside of the scope of this patch.","commit_id":"1300ec8563ad00340da89bf54e745111c3e1350c"},{"author":{"_account_id":8978,"name":"Marek Denis","email":"marek.denis+openstack@gmail.com","username":"marek-denis"},"change_message_id":"46fc09438e33a937fbf614ea68b38318da3da3fb","unresolved":false,"context_lines":[{"line_number":408,"context_line":""},{"line_number":409,"context_line":"        user_domains \u003d self.assignment_api.list_domains_for_user(user[\u0027id\u0027])"},{"line_number":410,"context_line":"        # TODO(henry-nash): There *should* be no domains in the list since both"},{"line_number":411,"context_line":"        # grants were inherited (and hence only applied to projects within the"},{"line_number":412,"context_line":"        # domain). However, incorrectly, both are returned due to bug #1390640."},{"line_number":413,"context_line":"        self.assertThat(user_domains, matchers.HasLength(2))"},{"line_number":414,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_8e1612a6","line":411,"in_reply_to":"5a890539_6e3806a1","updated":"2014-11-12 10:17:30.000000000","message":"@Steve: yes, my understanding (after excersising OS-INHERIT with Henry) is that once you have role inheriting to a project it will be tied to projects within this domain, not the domain itself (effectively will be listed when working playing with projects, not domains)\n\n@Henry: I\u0027d also say that list_domains_for_user is rather for listing domains the user with a user_id can access. Same applies for domains for groups used in federation.","commit_id":"1300ec8563ad00340da89bf54e745111c3e1350c"}]}
