Skip to content

GAIA: update the authentication implementation to read the cookies sent by the new ESAC tap mechanism #3289

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

Conversation

cosmoJFH
Copy link
Contributor

@cosmoJFH cosmoJFH commented Apr 11, 2025

Dear astroquery team,

the ESAC team has released a new tap library (v10.1.0) that implements a new authentication mechanism: the cookies are associated to the key SESSION, while in previous versions of the library the JSESSIONID is used instead.

We have updated the implementation in astroquery/utils/tap/core.py, so the new key SESSION is read if it is present in the header. Note that this implementation is backward compatible.

cc @esdc-esac-esa-int
jira: GAIAPCR-1341

Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.48%. Comparing base (4c2caa2) to head (04df663).
Report is 168 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3289      +/-   ##
==========================================
+ Coverage   69.37%   69.48%   +0.11%     
==========================================
  Files         232      232              
  Lines       19689    19703      +14     
==========================================
+ Hits        13659    13691      +32     
+ Misses       6030     6012      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bsipocz bsipocz added this to the v0.4.11 milestone Apr 14, 2025
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good. Given that it's very much an internal detail rather than user facing, I don't think it needs a changelog, but it's also OK to leave one in.
Unless you say otherwise I'll remove the one at release time.

Comment on lines -882 to +883
def __find_column(columnName, columns):
for c in (columns):
if c.name == columnName:
def __find_column(column_name, columns):
for c in columns:
if c.name == column_name:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing all this cleanup, too!

@bsipocz bsipocz merged commit 6d87fc7 into astropy:main Apr 14, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants