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 CKAN 2.11.x Config apitoken_header_name - default to 'Authorization' #245

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

Engerrs
Copy link
Member

@Engerrs Engerrs commented Mar 3, 2025

This PR adds support for the new "apitoken_header_name" CKAN Config, in which you can specify alternative header for CKAN API Tokens.
This is an issue, when your CKAN instances are under Basic HTTP Authentication, which breaks the default "Authorization" header and as a result, uploading doesn't work and return 403 HTTP.
Those changes make sure that Xloader takes into account the changed Header for accepting CKAN API Keys.

@duttonw duttonw changed the title Support apitoken_header_name CKAN Config Fix: Support apitoken_header_name CKAN Config - Default 'Authorization' Mar 3, 2025
@duttonw duttonw changed the title Fix: Support apitoken_header_name CKAN Config - Default 'Authorization' Fix: Support CKAN 2.11.x Config apitoken_header_name - default to 'Authorization' Mar 3, 2025
@duttonw
Copy link
Collaborator

duttonw commented Mar 3, 2025

Hi @Engerrs ,

Thanks for the contribution.

Regards,

@duttonw

@duttonw duttonw merged commit cc968e3 into ckan:master Mar 3, 2025
4 checks passed
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.

2 participants