mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-11 13:53:22 +00:00
only set domain if it has value
This commit is contained in:
@@ -237,8 +237,10 @@ export class GSuiteDirectoryService extends BaseDirectoryService implements Dire
|
|||||||
|
|
||||||
this.authParams = {
|
this.authParams = {
|
||||||
auth: this.client,
|
auth: this.client,
|
||||||
domain: this.dirConfig.domain,
|
|
||||||
};
|
};
|
||||||
|
if (this.dirConfig.domain != null && this.dirConfig.domain.trim() !== '') {
|
||||||
|
this.authParams.domain = this.dirConfig.domain;
|
||||||
|
}
|
||||||
if (this.dirConfig.customer != null && this.dirConfig.customer.trim() !== '') {
|
if (this.dirConfig.customer != null && this.dirConfig.customer.trim() !== '') {
|
||||||
this.authParams.customer = this.dirConfig.customer;
|
this.authParams.customer = this.dirConfig.customer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user