mirror of
https://github.com/bitwarden/android.git
synced 2026-04-29 20:38:41 -05:00
[PM-29947] Remove ResetMasterPassword property from token response model (#6285)
This commit is contained in:
@@ -7092,7 +7092,6 @@ class AuthRepositoryTest {
|
|||||||
privateKey = "privateKey",
|
privateKey = "privateKey",
|
||||||
accountKeys = null,
|
accountKeys = null,
|
||||||
shouldForcePasswordReset = true,
|
shouldForcePasswordReset = true,
|
||||||
shouldResetMasterPassword = true,
|
|
||||||
twoFactorToken = null,
|
twoFactorToken = null,
|
||||||
masterPasswordPolicyOptions = null,
|
masterPasswordPolicyOptions = null,
|
||||||
userDecryptionOptions = null,
|
userDecryptionOptions = null,
|
||||||
@@ -7111,7 +7110,6 @@ class AuthRepositoryTest {
|
|||||||
privateKey = "privateKey",
|
privateKey = "privateKey",
|
||||||
accountKeys = ACCOUNT_KEYS,
|
accountKeys = ACCOUNT_KEYS,
|
||||||
shouldForcePasswordReset = true,
|
shouldForcePasswordReset = true,
|
||||||
shouldResetMasterPassword = true,
|
|
||||||
twoFactorToken = null,
|
twoFactorToken = null,
|
||||||
masterPasswordPolicyOptions = null,
|
masterPasswordPolicyOptions = null,
|
||||||
userDecryptionOptions = UserDecryptionOptionsJson(
|
userDecryptionOptions = UserDecryptionOptionsJson(
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ private val GET_TOKEN_RESPONSE_SUCCESS = GetTokenResponseJson.Success(
|
|||||||
privateKey = "privateKey",
|
privateKey = "privateKey",
|
||||||
accountKeys = createMockAccountKeysJson(number = 1),
|
accountKeys = createMockAccountKeysJson(number = 1),
|
||||||
shouldForcePasswordReset = false,
|
shouldForcePasswordReset = false,
|
||||||
shouldResetMasterPassword = true,
|
|
||||||
twoFactorToken = null,
|
twoFactorToken = null,
|
||||||
masterPasswordPolicyOptions = null,
|
masterPasswordPolicyOptions = null,
|
||||||
userDecryptionOptions = null,
|
userDecryptionOptions = null,
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ sealed class GetTokenResponseJson {
|
|||||||
* public key encryption key pair. This is temporarily nullable to support older accounts that
|
* public key encryption key pair. This is temporarily nullable to support older accounts that
|
||||||
* have not been upgraded to use account keys instead of the deprecated `PrivateKey` field.
|
* have not been upgraded to use account keys instead of the deprecated `PrivateKey` field.
|
||||||
* @property shouldForcePasswordReset Whether or not the app must force a password reset.
|
* @property shouldForcePasswordReset Whether or not the app must force a password reset.
|
||||||
* @property shouldResetMasterPassword Whether or not the user is required to reset their
|
|
||||||
* master password.
|
|
||||||
* @property twoFactorToken If the user has chosen to remember the two-factor authorization,
|
* @property twoFactorToken If the user has chosen to remember the two-factor authorization,
|
||||||
* this token will be cached and used for future auth requests.
|
* this token will be cached and used for future auth requests.
|
||||||
* @property masterPasswordPolicyOptions The options available for a user's master password.
|
* @property masterPasswordPolicyOptions The options available for a user's master password.
|
||||||
@@ -79,9 +77,6 @@ sealed class GetTokenResponseJson {
|
|||||||
@SerialName("ForcePasswordReset")
|
@SerialName("ForcePasswordReset")
|
||||||
val shouldForcePasswordReset: Boolean,
|
val shouldForcePasswordReset: Boolean,
|
||||||
|
|
||||||
@SerialName("ResetMasterPassword")
|
|
||||||
val shouldResetMasterPassword: Boolean,
|
|
||||||
|
|
||||||
@SerialName("TwoFactorToken")
|
@SerialName("TwoFactorToken")
|
||||||
val twoFactorToken: String?,
|
val twoFactorToken: String?,
|
||||||
|
|
||||||
|
|||||||
@@ -568,7 +568,6 @@ private const val LOGIN_SUCCESS_JSON = """
|
|||||||
"EnforceOnLogin": true
|
"EnforceOnLogin": true
|
||||||
},
|
},
|
||||||
"ForcePasswordReset": true,
|
"ForcePasswordReset": true,
|
||||||
"ResetMasterPassword": true,
|
|
||||||
"Kdf": 1,
|
"Kdf": 1,
|
||||||
"KdfIterations": 600000,
|
"KdfIterations": 600000,
|
||||||
"KdfMemory": 16,
|
"KdfMemory": 16,
|
||||||
@@ -603,7 +602,6 @@ private val LOGIN_SUCCESS = GetTokenResponseJson.Success(
|
|||||||
privateKey = "privateKey",
|
privateKey = "privateKey",
|
||||||
accountKeys = createMockAccountKeysJson(number = 1),
|
accountKeys = createMockAccountKeysJson(number = 1),
|
||||||
shouldForcePasswordReset = true,
|
shouldForcePasswordReset = true,
|
||||||
shouldResetMasterPassword = true,
|
|
||||||
twoFactorToken = null,
|
twoFactorToken = null,
|
||||||
masterPasswordPolicyOptions = MasterPasswordPolicyOptionsJson(
|
masterPasswordPolicyOptions = MasterPasswordPolicyOptionsJson(
|
||||||
minimumComplexity = 10,
|
minimumComplexity = 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user