-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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], |
There was a problem hiding this comment.
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() | ||
): |
There was a problem hiding this comment.
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.
Changes the authentication to incorporate multiple sets of credentials, which are repository specific.