mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 09:56:45 -06:00
chore/SRE-583 Deprecate usage of Auth-Email Header (#5097)
Co-authored-by: sneakernuts <671942+sneakernuts@users.noreply.github.com>
This commit is contained in:
parent
25a78f60ab
commit
a999592fb6
@ -17,7 +17,6 @@ import retrofit2.http.Body
|
||||
import retrofit2.http.Field
|
||||
import retrofit2.http.FormUrlEncoded
|
||||
import retrofit2.http.GET
|
||||
import retrofit2.http.Header
|
||||
import retrofit2.http.POST
|
||||
import retrofit2.http.Query
|
||||
|
||||
@ -33,7 +32,6 @@ internal interface UnauthenticatedIdentityApi {
|
||||
@Field(value = "scope", encoded = true) scope: String,
|
||||
@Field(value = "client_id") clientId: String,
|
||||
@Field(value = "username") email: String,
|
||||
@Header(value = "Auth-Email") authEmail: String,
|
||||
@Field(value = "password") passwordHash: String?,
|
||||
@Field(value = "deviceIdentifier") deviceIdentifier: String,
|
||||
@Field(value = "deviceName") deviceName: String,
|
||||
|
||||
@ -18,7 +18,6 @@ import com.bitwarden.network.model.VerifyEmailTokenResponseJson
|
||||
import com.bitwarden.network.model.toBitwardenError
|
||||
import com.bitwarden.network.util.DeviceModelProvider
|
||||
import com.bitwarden.network.util.NetworkErrorCode
|
||||
import com.bitwarden.network.util.base64UrlEncode
|
||||
import com.bitwarden.network.util.executeForNetworkResult
|
||||
import com.bitwarden.network.util.getNetworkErrorCodeOrNull
|
||||
import com.bitwarden.network.util.parseErrorBodyOrNull
|
||||
@ -63,7 +62,6 @@ internal class IdentityServiceImpl(
|
||||
.getToken(
|
||||
scope = "api offline_access",
|
||||
clientId = "mobile",
|
||||
authEmail = email.base64UrlEncode(),
|
||||
deviceIdentifier = uniqueAppId,
|
||||
deviceName = deviceModelProvider.deviceModel,
|
||||
deviceType = "0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user