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:
parent
a68631c7b7
commit
a78ed4c548
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user