slicer.ini lack authentication examples
Closed this issue · 1 comments
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
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.