From a78ed4c54834d88f23dd3508fdcba2a87ca97446 Mon Sep 17 00:00:00 2001 From: SmithThe4th Date: Mon, 3 Apr 2023 11:45:22 -0400 Subject: [PATCH] [AC-1260] Removed ssoRequired field from the sso details response (#5123) * Removed ssoRequired field from the sso details response * Fixed PR comment --- apps/web/src/auth/sso.component.ts | 7 ++----- .../responses/organization-domain-sso-details.response.ts | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/web/src/auth/sso.component.ts b/apps/web/src/auth/sso.component.ts index e80135c6ab..df3b3e2fc8 100644 --- a/apps/web/src/auth/sso.component.ts +++ b/apps/web/src/auth/sso.component.ts @@ -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); diff --git a/libs/common/src/abstractions/organization-domain/responses/organization-domain-sso-details.response.ts b/libs/common/src/abstractions/organization-domain/responses/organization-domain-sso-details.response.ts index 8b2f458f72..f2a7001522 100644 --- a/libs/common/src/abstractions/organization-domain/responses/organization-domain-sso-details.response.ts +++ b/libs/common/src/abstractions/organization-domain/responses/organization-domain-sso-details.response.ts @@ -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"); } }