Skip to content

returning json for EDL request - #16

Merged
hkryeung merged 3 commits into
developfrom
issue/15
Jul 28, 2026
Merged

returning json for EDL request#16
hkryeung merged 3 commits into
developfrom
issue/15

Conversation

@DavidVWood44

@DavidVWood44 DavidVWood44 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

fixes #15

aded return token to EDL using {Auth...: Bearer } as requested by bignbit

@tloubrieu-jpl tloubrieu-jpl moved this to needs:triage in podaac Jun 11, 2026
@DavidVWood44
DavidVWood44 requested a review from yenes56 June 11, 2026 15:02
@tloubrieu-jpl tloubrieu-jpl added the team:tva Tools and Services label Jun 11, 2026
Comment thread token_dispenser/token_dispenser_lambda.py Outdated
@tloubrieu-jpl

Copy link
Copy Markdown
Contributor

Hi @DavidVWood44 , can you look at @hkryeung comment ?
Thanks

@tloubrieu-jpl

Copy link
Copy Markdown
Contributor

Hi @DavidVWood44 , @DavidVWoodSr , any updates on this PR ?

@DavidVWood44

Copy link
Copy Markdown
Collaborator Author

@hkryeung/@tloubrieu-jpl
The return type has changed on parameter request to allow for raw/json, and bearer return.

@tloubrieu-jpl

Copy link
Copy Markdown
Contributor

Hi @hkryeung,

could you re-review the PR ?

Thanks

edl_user: str,
edl_pass: str,
edl_env: str,
return_type: Literal["raw", "json", "bearer"] = "bearer",

@hkryeung hkryeung Jul 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Considering the first version of the code was returning json by default, please have it do so

return_type: Literal["raw", "json", "bearer"] = "json"

(so if other teams don't have it set, it wouldn't break their code)
https://github.com/podaac/token-dispenser/pull/16/changes#diff-de455c0409f38aa6759eac2653767e3ab85e50f9bc05778f49848a5a492e0999L169

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@hkryeung , I have defaulted the get_edl_token return type to json. Please review. Thx...

@hkryeung
hkryeung merged commit 46c5eea into develop Jul 28, 2026
@tloubrieu-jpl tloubrieu-jpl moved this from needs:triage to closed in podaac Jul 28, 2026
@hkryeung
hkryeung deleted the issue/15 branch July 29, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:tva Tools and Services

Projects

Status: closed

Development

Successfully merging this pull request may close these issues.

Change EDL token request to json -> {Authorization: Bearer <token>}

5 participants