1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +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:
SmithThe4th 2023-04-03 11:45:22 -04:00 committed by GitHub
parent a68631c7b7
commit a78ed4c548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -104,11 +104,8 @@ export class SsoComponent extends BaseSsoComponent {
const errorResponse: ErrorResponse = error as ErrorResponse;
switch (errorResponse.statusCode) {
case HttpStatusCode.NotFound:
if (errorResponse?.message?.includes("Claimed org domain not found")) {
// Do nothing. This is a valid case.
return;
}
break;
//this is a valid case for a domain not found
return;
default:
this.validationService.showError(errorResponse);

View File

@ -5,7 +5,6 @@ export class OrganizationDomainSsoDetailsResponse extends BaseResponse {
organizationIdentifier: string;
ssoAvailable: boolean;
domainName: string;
ssoRequired: boolean;
verifiedDate?: Date;
constructor(response: any) {
@ -14,7 +13,6 @@ export class OrganizationDomainSsoDetailsResponse extends BaseResponse {
this.organizationIdentifier = this.getResponseProperty("organizationIdentifier");
this.ssoAvailable = this.getResponseProperty("ssoAvailable");
this.domainName = this.getResponseProperty("domainName");
this.ssoRequired = this.getResponseProperty("ssoRequired");
this.verifiedDate = this.getResponseProperty("verifiedDate");
}
}