astroquery: astroquery.alma authentication redirect page no longer exists

While rebuilding from the cyberattack that shut down ALMA’s systems, several authentication pages have been consolidated and/or removed. Astroquery is configured for the address asa.alma.cl (in __init__.py), which is then augmented with /rh/forceauthentication in the _login() function in core.py to create the full login address. This page (asa.alma.cl/rh/forceauthentication) no longer exists- it has been replaced with a local version that uses the URL https://almascience.nrao.edu/rh/forceauthentication I’ve edited my local copy to use this URL by adding almascience.nrao.edu to auth_urls on line 14 in __init__.py:

auth_urls = ['almascience.nrao.edu', 'asa.alma.cl', 'rh-cas.alma.cl']

This allows me to log in with the Alma object, and circumvents the issue. I suspect the same effect and solution will be observed for users wanting to access the other ARCs at almascience.eso.org and almascience.nao.ac.jp

I recommend making this change to accommodate the new authentication redirect in ALMA’s systems.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I ran a totally fresh installation, and was able to log in! I believe this is working now- I’m going to run some tests on my machine and will update this ticket if I see any issues, but for now this looks like a success.