1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 19:53:43 +00:00

fix(tde-offboarding): Auth/PM-19165 - Handle TDE offboarding on an untrusted device with warning message (#15430)

When a user logs in via SSO after their org has offboarded from TDE, we now show them a helpful error message stating that they must either login on a Trusted device, or ask their admin to assign them a password.

Feature flag: `PM16117_SetInitialPasswordRefactor`
This commit is contained in:
Jared Snider
2025-07-08 12:58:03 -04:00
committed by GitHub
parent 3da58e1752
commit b9f930a609
17 changed files with 257 additions and 41 deletions

View File

@@ -17,8 +17,8 @@ export class IdentityTokenResponse extends BaseResponse {
tokenType: string;
resetMasterPassword: boolean;
privateKey: string;
key?: EncString;
privateKey: string; // userKeyEncryptedPrivateKey
key?: EncString; // masterKeyEncryptedUserKey
twoFactorToken: string;
kdf: KdfType;
kdfIterations: number;
@@ -62,4 +62,8 @@ export class IdentityTokenResponse extends BaseResponse {
);
}
}
hasMasterKeyEncryptedUserKey(): boolean {
return Boolean(this.key);
}
}