Skip to content

Commit

Permalink
clients: fix checking if sso is active in parent class of opencga-cli…
Browse files Browse the repository at this point in the history
…ent #TASK-5096
  • Loading branch information
jmjuanes committed Oct 18, 2023
1 parent a17dee5 commit b76daea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/clients/opencga/opencga-parent-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class OpenCGAParentClass {
}

// Enable credentials
_options.includeCredentials = !!this._config.sso;
_options.includeCredentials = !!this._config?.sso?.active;

// console.log(`OpenCGA client calling to ${url}`);
// if the URL query fails we try with next host
Expand Down Expand Up @@ -83,7 +83,7 @@ export default class OpenCGAParentClass {
}

// Enable credentials
_options.includeCredentials = !!this._config.sso;
_options.includeCredentials = !!this._config?.sso?.active;

return this.restClient.call(url, _options, k);
}
Expand All @@ -106,7 +106,7 @@ export default class OpenCGAParentClass {
// _options.body = _params.body;

// Enable credentials
_options.includeCredentials = !!this._config.sso;
_options.includeCredentials = !!this._config?.sso?.active;

return this.restClient.call(url, _options, k);
}
Expand Down

0 comments on commit b76daea

Please sign in to comment.