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

Check/replace legacy API-KEY usage with JWT based check #389

Open
nickdos opened this issue Jul 29, 2024 · 4 comments
Open

Check/replace legacy API-KEY usage with JWT based check #389

nickdos opened this issue Jul 29, 2024 · 4 comments

Comments

@nickdos
Copy link
Contributor

nickdos commented Jul 29, 2024

Potential candidate:

https://github.com/AtlasOfLivingAustralia/bie-index/blob/develop/grails-app/controllers/au/org/ala/bie/MiscController.groovy#L191

Should include a scopes attribute for newer JWT checks.

@vjrj
Copy link
Contributor

vjrj commented Oct 24, 2024

Hi @nickdos and @adam-collins. I'm trying to upgrade our services to use the latest versions of bie-index and ala-bie-hub. But I don't find a configuration that works for methods in MiscController with the @RequireApykey annotation. Is this working for ALA or we need to solve this issue? I was trying to debug but I'm a bit lost debugging the interceptors.

TIA

@nickdos
Copy link
Contributor Author

nickdos commented Oct 25, 2024

Did you check apikey app has allowed access for the client and service? E.g. ALA version is https://auth.ala.org.au/apikey/.

@vjrj
Copy link
Contributor

vjrj commented Oct 25, 2024

Did you check apikey app has allowed access for the client and service? E.g. ALA version is https://auth.ala.org.au/apikey/.

Yes. I'll double check again. But I get a 401 doing setUrl and similar calls. Thanks anyway.

@nickdos
Copy link
Contributor Author

nickdos commented Oct 25, 2024

The other thing to check is the "authorised systems" in userdetails. You might need to white-list the IP for the server as well.

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