These are chat archives for DataBrewery/cubes

10th
Mar 2017
Richard Banyi
@richban
Mar 10 2017 09:19
Has anybody done the "Authorization and Authentication" part?
Richard Banyi
@richban
Mar 10 2017 09:47
I have managed to integrate CubesViewer Server into my Django web application. (it's awesome) now I would like to do something: " shop manager might have access only to sales cube and dimension point equal to his own shop."
Richard Banyi
@richban
Mar 10 2017 09:57
So my authentication is happening on the server side using IsAuthenticated class. Therefore my question now is, all I have to do now is just describe the user rights using simple Auth ?
@jjmontesl is this going to work in CubesViewer?
Jose Juan Montes
@jjmontesl
Mar 10 2017 17:19
I am afraid not. It assumes a binary permission (all/nothing).
and I personally haven't used Cubes 1.1 permission model.
unless the server side hides everything from the client side, I don't think so, but I don't really know
Stefan Urbanek
@Stiivi
Mar 10 2017 18:47
@/all Hi all. My apologies for being unresponsive. After a longer break, I'm going to devote more time to Cubes, at least few hours a week. I will start this weekend with house-keeping of the repository and issues.
One major change that I plan to do is to move cubes to Python ≧ 3.6 mostly because of the static type checking (#393).
Stefan Urbanek
@Stiivi
Mar 10 2017 18:57
@richban there is one undocumented feature: identity_dimension as an option for the authorizer configuration. Specify name of a dimension of which primary key is the same as identity passed to the authorizer. This point cut will be added to each query with a cube that has the dimension specified in identity_dimension.
Richard Banyi
@richban
Mar 10 2017 22:56
@Stiivi could you explain in more detail? I have to enable simple authorization in the workspace, and specify the identity_dimension for example users (which is basicaly a dimension that specifies the authorized users)?