Skip to content

Allow attaching OIDC access token to DRS requests#22484

Open
marius-mather wants to merge 12 commits intogalaxyproject:devfrom
AustralianBioCommons:drs-access-token
Open

Allow attaching OIDC access token to DRS requests#22484
marius-mather wants to merge 12 commits intogalaxyproject:devfrom
AustralianBioCommons:drs-access-token

Conversation

@marius-mather
Copy link
Copy Markdown
Contributor

Allow attaching OIDC access tokens when fetching data via DRS. The OIDC access token to use can be specified in the file sources config, e.g.

- type: drs
  id: my-drs-server
  url_regex: ^drs://localhost:4500/
  http_headers:
    Authorization: Bearer ${user.oidc_access_tokens['oidc']}

this probably makes most sense in cases where there is only one OIDC provider (and OIDC login is enforced), but has been left open in case it's useful for other use-cases.

We also want to sure that the OIDC access token is still fresh when using it to fetch - so this PR adds the ability to refresh from the data fetch job.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added area/testing area/auth Authentication and authorization labels Apr 15, 2026
@github-actions github-actions bot added this to the 26.1 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication and authorization area/testing

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

1 participant