Skip to content

Commit

Permalink
Add solr auth
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdianauy committed May 8, 2024
1 parent 1610c0e commit e9ed2e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/export_atlas_ebeye_xml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ sub check_env_var {
check_env_var('BIOENTITY_PROPERTIES_WBPS',"\$ATLAS_PROD/bioentity_properties/annotations/wbps");
check_env_var('SOLR_HOST',"should include both host and port if needed.");
check_env_var('WEB_API_URL',"should include api url.");
check_env_var('SOLR_USER');
check_env_var('SOLR_PASS');

my $atlasProdDir = $ENV{ "ATLAS_PROD" };
my $bioentity_properties_annotations_ensembl=$ENV{'BIOENTITY_PROPERTIES_ENSEMBL'};
Expand Down Expand Up @@ -207,6 +209,11 @@ sub get_data_from_solr_db {
return ($H_geneIDs2expts2contrasts, $H_geneIDs2expts2assayGroups);
}

sub LWP::UserAgent::get_basic_credentials {
my ($self, $realm, $url, $isproxy) = @_;

return $ENV{'SOLR_USER'}, $ENV{'SOLR_PASS'};
}

## parse json formatted result for genes associated to experiments accessions and assay group ids.
sub parse_json_from_solr {
Expand Down

0 comments on commit e9ed2e1

Please sign in to comment.