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

ALA admin JWT privilege not recognised by BioCollect #1574

Open
temi opened this issue Nov 17, 2023 · 0 comments
Open

ALA admin JWT privilege not recognised by BioCollect #1574

temi opened this issue Nov 17, 2023 · 0 comments

Comments

@temi
Copy link
Contributor

temi commented Nov 17, 2023

One example where this is happening is when looking up details of a survey using /ws/bioactivity/data/{id} endpoint. ALA admin JWT should be able to view the data. Actually, ws returns 401.

Cause

ecodata-client-plugin's userInfoService getUserFromJWT should return UserDetails object. ALA admin check are run using hasRole method on that object. Currently, it is returning a Map.

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

1 participant