Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization not working #224

Closed
mustafahsyed opened this issue Oct 11, 2023 · 4 comments
Closed

Authorization not working #224

mustafahsyed opened this issue Oct 11, 2023 · 4 comments

Comments

@mustafahsyed
Copy link

Hi,

I have a dataset that should be accessible only by a group of users. I have added user in permissions/permissions.yml file as

`
user51578472:
- dataset123
`

But any user can access this dataset, looks like dataset is not restricted.
@costero-e
Copy link
Collaborator

Hi @mustafahsyed,

thank you very much for spotting this!

I just made a commit addressing this, you can find it in this PR: #234

If you encounter any other issue, please tell me,

best,

Oriol

@mustafahsyed
Copy link
Author

Hi,

Thanks for working on the issue. I am getting exception with the latest update in the highlighted code below

image

Some debug messages in the screenshot below

image

Beacon is returning nothing

Please let me know if you need more information.

Thanks
Mustafa

@costero-e
Copy link
Collaborator

Hi @mustafahsyed !

thank you for the reporting. I am properly seeing returned my dataset records, so maybe is some information missing from dataset endpoint, as beacon is relating the ids by grabbing the info that is stored there.

Can you tell me if this is happening to you for all the datasets and what is the info you have in datasets endpoint?

Best,

Oriol

@mustafahsyed
Copy link
Author

Hi Oriol,

It worked after properly formatting datasets

Thanks
Mustafa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants