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

Multi auth provider credentials #93

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

kdp-cloud
Copy link
Collaborator

Changes the authentication to incorporate multiple sets of credentials, which are repository specific.

@kdp-cloud kdp-cloud marked this pull request as ready for review November 21, 2024 16:19
@bedroesb bedroesb linked an issue Nov 23, 2024 that may be closed by this pull request
@@ -101,7 +114,7 @@ def submission(
# Submit to Biosamples
biosamples_result = submit_to_biosamples(
isa_json=isa_json,
biosamples_credentials=user_credentials,
biosamples_credentials=user_credentials[TargetRepository.BIOSAMPLES.value],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be AuthProvider.WEBIN.value instead? (And same for the ENA usages below)
Not sure if we need some kind of TargetRepository -> AuthProvider mapping, or whether just defining it implicitly in this method is enough.


if not all(
repo in AuthProvider.available_providers() for repo in credentials.keys()
):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think eventually should loosen this up, e.g. if I'm only submitting the ENA, EVA and BioSamples I shouldn't need Metabolights credentials... it's fine for now though.

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.

Make password file support multiple password pairs
2 participants