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

Authentication/Roles #2119

Closed
mdomox opened this issue Oct 17, 2016 · 2 comments
Closed

Authentication/Roles #2119

mdomox opened this issue Oct 17, 2016 · 2 comments

Comments

@mdomox
Copy link
Contributor

mdomox commented Oct 17, 2016

When the AUTH_DEFAULT_ROLE parameter is set to "readable", one can view reports, profile etc.

I have set up a subject with the "readable" priviledges and a unique link is generated.

Then I change the AUTH_DEFAULT_ROLE parameter to status-only. The user with the link can only see the main page, but cannot access any other page (reports, profile, etc) . All the other pages ask for the API Secret, even though the parent page is the one with the token.

The issue is that the "readable" priviledge changes behaviour.

One would expect that the user with the token would be able to view reports, etc.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38420735-authentication-roles?utm_campaign=plugin&utm_content=tracker%2F2451736&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2451736&utm_medium=issues&utm_source=github).
@mdomox
Copy link
Contributor Author

mdomox commented Oct 17, 2016

The same happens if the AUTH_DEFAULT_ROLE parameter is set to "denied".

@Heiner1
Copy link

Heiner1 commented Oct 9, 2017

Same problem for me; http://www.nightscout.info/wiki/welcome/website-features/0-9-features/authentication-roles Amy wrote there: readable: read-only access; no ability to make CarePortal/treatment entries. This user CAN see reports and profile information.
That's wrong! How to manage to transfer the token to another site?

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

No branches or pull requests

3 participants