)]}'
{"keystoneclient/v2_0/tokens.py":[{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"317b0274328fc3a5244f868b1cca86338fb3c393","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def endpoints(self, token):"},{"line_number":65,"context_line":"        return self._get(\"/tokens/%s/endpoints\" % base.getid(token), \"token\")"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def validate(self, token, belongs_to\u003dNone):"},{"line_number":68,"context_line":"        url \u003d \"/tokens/%s\" % base.getid(token)"},{"line_number":69,"context_line":"        if belongs_to:"},{"line_number":70,"context_line":"            url +\u003d \"?belongsTo\u003d%s\" % belongs_to"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_08803a8a","line":67,"updated":"2014-07-17 13:55:42.000000000","message":"This logic is really not sufficient, as it assumes that the token isa uuid token, even if it is a PKI token.  A better approach would be to migrate the code from middleware/auth_token.py  that does the CMS based check, with UUID lookup as a fallback.  Implementing this as written will only support a limited set of deployment scenarios.","commit_id":"d7483da01fc925fe66b5f777b78539f09ec7bbc8"},{"author":{"_account_id":9500,"name":"Matt Fischer","email":"matt@mattfischer.com","username":"mfisch"},"change_message_id":"cdbe32c561845cb70ad47af82a06e619e7016791","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def endpoints(self, token):"},{"line_number":65,"context_line":"        return self._get(\"/tokens/%s/endpoints\" % base.getid(token), \"token\")"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def validate(self, token, belongs_to\u003dNone):"},{"line_number":68,"context_line":"        url \u003d \"/tokens/%s\" % base.getid(token)"},{"line_number":69,"context_line":"        if belongs_to:"},{"line_number":70,"context_line":"            url +\u003d \"?belongsTo\u003d%s\" % belongs_to"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_cb39c0a4","line":67,"in_reply_to":"baada198_08803a8a","updated":"2014-07-18 03:57:55.000000000","message":"This code is just a pretty basic wrapper around the API call. If the API call doesn\u0027t handle that portion of the validation then we should update the documentation and/or fix the API. That makes more sense to me than fixing a python library since it doesn\u0027t cover all entry points.","commit_id":"d7483da01fc925fe66b5f777b78539f09ec7bbc8"}]}
