Skip to content

Remove Basic auth from EDC credentials header#236

Open
sujen1412 wants to merge 3 commits into
mainfrom
fix/148-edc-credentials-auth-header
Open

Remove Basic auth from EDC credentials header#236
sujen1412 wants to merge 3 commits into
mainfrom
fix/148-edc-credentials-auth-header

Conversation

@sujen1412
Copy link
Copy Markdown
Collaborator

@sujen1412 sujen1412 commented May 26, 2026

Summary

Removes the Basic authentication credentials from the EDC (Earthdata Data Cloud) authorization header in the members endpoint. The header now only includes the Bearer token for URS authentication.

Changes

  • api/endpoints/members.py: Modified the get_edc_credentials() function to remove Basic {settings.MAAP_EDL_CREDS} from the Authorization header, keeping only the Bearer token authentication

Details

The Authorization header in the EDC credentials request previously included both Bearer token and Basic authentication. This change simplifies the authentication to use only the Bearer token, which is the standard approach for URS (User Registration System) authentication with Earthdata Login.

Fixes #148

bsatoriu
bsatoriu previously approved these changes May 27, 2026
Copy link
Copy Markdown
Collaborator

@bsatoriu bsatoriu left a comment

Choose a reason for hiding this comment

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

claude and others added 3 commits May 27, 2026 14:30
The combined 'Bearer {token},Basic {creds}' Authorization header caused
the LP DAAC S3 credentials endpoint to reject the request and redirect
to the EDL OAuth login page instead of returning credentials, resulting
in a JSONDecodeError when the empty/HTML response was parsed.

https://claude.ai/code/session_017YKqMqZHprcFmzXrt1p9HX
Remove edl_federated_request from s3 credentials flow and add error handling.
@bsatoriu bsatoriu force-pushed the fix/148-edc-credentials-auth-header branch from ce5a63f to cd8f655 Compare May 27, 2026 21:30
@sonarqubecloud
Copy link
Copy Markdown

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.

MAAP API awsAccess/edcCredentials endpoint returning 500

3 participants