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

fix: support auth w/o token #108

Merged
merged 3 commits into from
Nov 7, 2024
Merged

fix: support auth w/o token #108

merged 3 commits into from
Nov 7, 2024

Conversation

abulte
Copy link
Contributor

@abulte abulte commented Nov 6, 2024

Fix #107

Some catalogs do not support the XSRF-TOKEN dance (because of CAS integration?), but they handle the basic auth properly (i.e. auth is enough, no need for token).

This allows us to handle both cases. "No token" case is detected when the POST to fetch the XSFR-TOKEN does not fail (which means the basic auth is enough to POST on this endpoint).

@abulte
Copy link
Contributor Author

abulte commented Nov 7, 2024

Validated by updating https://catalogue.prodige-ecolab.fr/geonetwork/srv/fre/catalog.search#/metadata/a6f3986c-b1bc-4ac9-ba13-2614ebe6b719 (this catalog does not use token for auth).

@abulte abulte marked this pull request as ready for review November 7, 2024 08:32
@streino streino merged commit 35d6703 into main Nov 7, 2024
1 check passed
@streino streino deleted the fix/auth-wo-token branch November 7, 2024 18:49
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

Successfully merging this pull request may close these issues.

Auth issue
2 participants