DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

slicer.ini lack authentication examples #378

Closed adrialbu closed 8 years ago

adrialbu commented 8 years ago

Greetings, After reading this page i cannot get how to use it (lacks examples and i find ambiguous) https://github.com/DataBrewery/cubes/blob/master/doc/auth.rst#simple-authorization. How i configure Authentication and Identify from .ini ? And how i auth from my host?

Thanks

adrialbu commented 8 years ago

I kind... make it. If someone need: slicer.ini: `[workspace] log_level: info authorization: simple

[authorization] rights_file: access_rights.json

[server] host: localhost port: 5000 reload: yes prettyprint: yes allow_cors_origin: * authentication = pass_parameter

[store D1] type: sql url: mysql://server model: model.json

[store D2] type: sql url: mysql://server model: model.json`

In the access_rights.json: { "d1": { "denied_cubes": ["D2.BUY_FACT"] }, "d2": { "denied_cubes": ["D1.BUY_FACT"] } }

Only works with denied_cubes, If i put allowed it just ignore.

Thanks to google cache i found an old forum post and with that i somehow got it.