spmallette commented on pull request #1308:
URL: https://github.com/apache/tinkerpop/pull/1308#issuecomment-679300195


   i'm finally getting to this - sorry for the delay. the general direction 
here seems ok. i like that it doesn't particularly impose anything on providers 
who implement Gremlin Server protocol - it just introduces a companion to 
authentication interfaces. 
   
   I think `Authorizer` would be better as an interface with just the:
   
   ```java
   public AuthorizedUser authorize(final AuthenticatedUser user, final 
RequestMessage msg) throws AuthorizationException
   ```
   
   and some kind of `AbstractAuthorizer` that has your "preprocessing" as a 
base for folks to implement from. 
   
   I might have more to say about `AuthorizationHandler`, `AuthorizedUser` and 
the default `Authorization` implementation but for the most part it seems 
simple and straightforward enough. Now that I've looked at this in detail, I 
will be able to think about it more specifically in coming days. Thanks.


----------------------------------------------------------------
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]


Reply via email to