vtslab opened a new pull request #1308: URL: https://github.com/apache/tinkerpop/pull/1308
[https://issues.apache.org/jira/browse/TINKERPOP-2389](https://issues.apache.org/jira/browse/TINKERPOP-2389) This work is by no means finished, but is a first shot along the lines of the discussion linked to in the JIRA ticket. The work includes and Authorized API, called from the AbstractChannelizer, as well as a small WhitelistAuthorizer demo implementation included in the gremlin-server tests. The current WIP PR is only intended to simplify a review of this first concept. As the RequestMessage object passed to the authorize() method is not easy to handle, I thought it useful to do some first preprocessing common to future Authorizer implementations: - split authorization requests in those for bytecode requests and those for string-based requests - get and cast the object corresponding to Token.ARGS_GREMLIN This is not entirely consistent though as the other Token.ARGS_XYZ are left unpacked in the original RequestMessage. Any feedback is welcomed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
