nextflow
nextflow copied to clipboard
Ability to use basic authentication using weblog
New feature
Give users the ability to provide basic authentication credentials via the weblog URL. So logs can be posted to a secured server.
Usage scenario
Collecting weblogs on remote server which requires a basic authentication. Nextflow call should look like:
nextflow run -with-weblog https://user:[email protected] .... main.nf
Suggest implementation
modules/nextflow/src/main/groovy/nextflow/util/SimpleHttpClient.groovy
already supports basic authentication, but there is no functionality to extract the credentials from the URL or provide it by a separate parameter.
I implemented it in a fork: https://github.com/di-hardt/nextflow/commit/3ef40cc139c81e535ac18b0ab7a6099c61af2591
If no credentials were provided in the URL or a basicToken
attribute is already set the code will simply do nothing.