mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
[AC-1260] Removed ssoRequired field from the sso details response (#5123)
* Removed ssoRequired field from the sso details response * Fixed PR comment
This commit is contained in:
parent
a68631c7b7
commit
a78ed4c548
@ -104,11 +104,8 @@ export class SsoComponent extends BaseSsoComponent {
|
|||||||
const errorResponse: ErrorResponse = error as ErrorResponse;
|
const errorResponse: ErrorResponse = error as ErrorResponse;
|
||||||
switch (errorResponse.statusCode) {
|
switch (errorResponse.statusCode) {
|
||||||
case HttpStatusCode.NotFound:
|
case HttpStatusCode.NotFound:
|
||||||
if (errorResponse?.message?.includes("Claimed org domain not found")) {
|
//this is a valid case for a domain not found
|
||||||
// Do nothing. This is a valid case.
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this.validationService.showError(errorResponse);
|
this.validationService.showError(errorResponse);
|
||||||
|
@ -5,7 +5,6 @@ export class OrganizationDomainSsoDetailsResponse extends BaseResponse {
|
|||||||
organizationIdentifier: string;
|
organizationIdentifier: string;
|
||||||
ssoAvailable: boolean;
|
ssoAvailable: boolean;
|
||||||
domainName: string;
|
domainName: string;
|
||||||
ssoRequired: boolean;
|
|
||||||
verifiedDate?: Date;
|
verifiedDate?: Date;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
@ -14,7 +13,6 @@ export class OrganizationDomainSsoDetailsResponse extends BaseResponse {
|
|||||||
this.organizationIdentifier = this.getResponseProperty("organizationIdentifier");
|
this.organizationIdentifier = this.getResponseProperty("organizationIdentifier");
|
||||||
this.ssoAvailable = this.getResponseProperty("ssoAvailable");
|
this.ssoAvailable = this.getResponseProperty("ssoAvailable");
|
||||||
this.domainName = this.getResponseProperty("domainName");
|
this.domainName = this.getResponseProperty("domainName");
|
||||||
this.ssoRequired = this.getResponseProperty("ssoRequired");
|
|
||||||
this.verifiedDate = this.getResponseProperty("verifiedDate");
|
this.verifiedDate = this.getResponseProperty("verifiedDate");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user