)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"849482a027c3d56837e07f3817eccd330fc79d9a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Adding support for token based authentication"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ibc73e46c22f1c63b2f80ff850767bdbfed3355a3"},{"line_number":10,"context_line":"Implements: add-authentication-token-support"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dac4157f_75131f0e","line":10,"updated":"2015-04-22 04:48:21.000000000","message":"For the link to Launchpad to work correctly this needs to be updated to\n\n    Implements: blueprint add-authentication-token-support","commit_id":"90d224e7cf3ed0e60e904eebd87fa219b094becd"}],"barbicanclient/barbican.py":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"849482a027c3d56837e07f3817eccd330fc79d9a","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        # Token-based authentication"},{"line_number":155,"context_line":"        elif args.os_auth_token:"},{"line_number":156,"context_line":"            if not all([args.os_auth_url, args.os_tenant_id or"},{"line_number":157,"context_line":"                        args.os_project_id]):"},{"line_number":158,"context_line":"                raise Exception(\u0027ERROR: please specify --os-auth-url and \u0027"},{"line_number":159,"context_line":"                                \u0027--os-project-id (or --os-tenant-id)\u0027)"},{"line_number":160,"context_line":"            kwargs \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"dac4157f_303c952e","line":157,"updated":"2015-04-22 04:48:21.000000000","message":"I don\u0027t think this check is quite right.  If someone specifies no version (so default v3) and then specifies --os-tenant-id, then this check will pass, but auth will fail, because the v3.Token class won\u0027t get a project_id.\n\nI think it would be better to check the auth version first, and then check for project_id or tenant_id as appropriate for each version.\n\nAlso, there are other valid combinations of args.  In v2 you could pass --os-tenant-name instead of the id, and auth should still work.  In v3 you can specify --os-project-name and --os-domain-name in place of --os-project-id, and auth should work as well.","commit_id":"90d224e7cf3ed0e60e904eebd87fa219b094becd"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b6c93b46c93e9335626417452112d48210353af7","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    def _check_auth_arguments(self, args, api_version\u003dNone, raise_exc\u003dFalse):"},{"line_number":132,"context_line":"        successful \u003d True"},{"line_number":133,"context_line":"        v3_args \u003d [args.os_project_id or args.os_project_name,"},{"line_number":134,"context_line":"                   args.os_project_domain_name or args.os_project_domain_id]"},{"line_number":135,"context_line":"        v2_args \u003d [args.os_tenant_id, args.os_tenant_name]"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        # Keystone V3"}],"source_content_type":"text/x-python","patch_set":3,"id":"bab921fb_07bc206b","line":134,"updated":"2015-04-22 20:49:04.000000000","message":"I think this should be\n\n    v3_args \u003d [args.os_project_id or (\n               args.os_project_name and args.os_project_domain_name) or (\n               args.os_project_name and args.os_project_domain_id)]\n\nproject_id uniquely identifies the project in Keystone, so no other param is needed, because there is no ambiguity.\n\nproject_name is only unique within a domain, so if you specify a project by name, you still need to specify the domain, which can be done by either name or id.","commit_id":"06d6b534efe8e9f4df394b9dcc68b903e04b9dfc"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b6c93b46c93e9335626417452112d48210353af7","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        # Keystone V3"},{"line_number":138,"context_line":"        if not api_version or api_version \u003d\u003d _DEFAULT_IDENTITY_API_VERSION:"},{"line_number":139,"context_line":"            if not any(v3_args):"},{"line_number":140,"context_line":"                msg \u003d (\u0027ERROR: please specify the following --os-project-id or\u0027"},{"line_number":141,"context_line":"                       \u0027--os-project-name, and --os-project-domain-name or \u0027"},{"line_number":142,"context_line":"                       \u0027--os-project-domain-id\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bab921fb_32e4003a","line":139,"updated":"2015-04-22 20:49:04.000000000","message":"I think that this reads better as:\n\n    if not all(v3_args):\n\nbut it\u0027ll work either way, since the change I suggested above just boils down to a single boolean.","commit_id":"06d6b534efe8e9f4df394b9dcc68b903e04b9dfc"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b6c93b46c93e9335626417452112d48210353af7","unresolved":false,"context_lines":[{"line_number":139,"context_line":"            if not any(v3_args):"},{"line_number":140,"context_line":"                msg \u003d (\u0027ERROR: please specify the following --os-project-id or\u0027"},{"line_number":141,"context_line":"                       \u0027--os-project-name, and --os-project-domain-name or \u0027"},{"line_number":142,"context_line":"                       \u0027--os-project-domain-id\u0027)"},{"line_number":143,"context_line":"                successful \u003d False"},{"line_number":144,"context_line":"        # Keystone V2"},{"line_number":145,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bab921fb_521ad418","line":142,"updated":"2015-04-22 20:49:04.000000000","message":"Update error message to:\n\n    ERROR: please specify the following --os-project-id or\n        (--os-project-name and --os-project-domain-name) or\n        (--os-project-name and --os-project-domain-id)","commit_id":"06d6b534efe8e9f4df394b9dcc68b903e04b9dfc"}],"doc/source/authentication.rst":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"849482a027c3d56837e07f3817eccd330fc79d9a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    $ barbican --os-auth-url \u003ckeystone-v3-url\u003e --os-project-domain-id \\"},{"line_number":83,"context_line":"    \u003cdomain id\u003e --os-user-domain-id \u003cuser domain id\u003e --os-username \u003cusername\u003e \\"},{"line_number":84,"context_line":"    --os-password \u003cpassword\u003e --os-project-name \u003cproject-name\u003e --os-project-id \\"},{"line_number":85,"context_line":"    \u003cproject-id\u003e --endpoint \u003cbarbican-endpoint\u003e secret list"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"This can become annoying and tedious, so authentication via Keystone can"},{"line_number":88,"context_line":"also be configured by setting environment variables. Barbican uses the same env"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dac4157f_b07d45e9","line":85,"updated":"2015-04-22 04:48:21.000000000","message":"endpoint is optional, maybe we should surround it in [] to point that out?","commit_id":"90d224e7cf3ed0e60e904eebd87fa219b094becd"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"849482a027c3d56837e07f3817eccd330fc79d9a","unresolved":false,"context_lines":[{"line_number":136,"context_line":".. code-block:: bash"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    $ barbican --os-auth-url \u003cauth_endpoint\u003e --os-auth-token \u003cauth_token\u003e \\"},{"line_number":139,"context_line":"    --os-project-id \u003cproject_id\u003e --endpoint \u003cbarbican-endpoint\u003e secret list"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Much like normal password authentication you can specify these values via"},{"line_number":142,"context_line":"environmental variables. Refer to `Keystone V3 authentication`_ for more"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dac4157f_7087add7","line":139,"updated":"2015-04-22 04:48:21.000000000","message":"endpoint is optional here as well.","commit_id":"90d224e7cf3ed0e60e904eebd87fa219b094becd"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b6c93b46c93e9335626417452112d48210353af7","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    $ barbican --os-auth-url \u003ckeystone-v3-url\u003e --os-project-domain-id \\"},{"line_number":83,"context_line":"    \u003cdomain id\u003e --os-user-domain-id \u003cuser domain id\u003e --os-username \u003cusername\u003e \\"},{"line_number":84,"context_line":"    --os-password \u003cpassword\u003e --os-project-name \u003cproject-name\u003e --os-project-id \\"},{"line_number":85,"context_line":"    \u003cproject-id\u003e secret list"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"This can become annoying and tedious, so authentication via Keystone can"},{"line_number":88,"context_line":"also be configured by setting environment variables. Barbican uses the same env"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bab921fb_1fc7c413","line":85,"updated":"2015-04-22 20:49:04.000000000","message":"You should only need one of project-name or project-id, not both.","commit_id":"06d6b534efe8e9f4df394b9dcc68b903e04b9dfc"}]}
