Skip to content

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

Merged
bsipocz merged 7 commits into
astropy:mainfrom
esdc-esac-esa-int:ESA_gaia_GAIAPCR-1341_new_tap_session_key
Apr 14, 2025
Merged

GAIA: update the authentication implementation to read the cookies sent by the new ESAC tap mechanism#3289
bsipocz merged 7 commits into
astropy:mainfrom
esdc-esac-esa-int:ESA_gaia_GAIAPCR-1341_new_tap_session_key

Conversation

@cosmoJFH

@cosmoJFH cosmoJFH commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Apr 11, 2025

Copy link
Copy Markdown

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

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
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