Skip to content

Commit 2d4356c

Browse files
committed
SRE-2330 cleanup references to auth-email
1 parent 20e3dfa commit 2d4356c

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

crates/bitwarden-core/src/auth/api/request/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ async fn send_identity_connect_request(
5151
request = request.header(reqwest::header::USER_AGENT, user_agent.clone());
5252
}
5353

54-
if let Some(email) = email {
55-
request = request.header("Auth-Email", URL_SAFE_NO_PAD.encode(email.as_bytes()));
56-
}
57-
5854
let response = request
5955
.body(serde_qs::to_string(&body).expect("Serialize should be infallible"))
6056
.send()

crates/bitwarden-uniffi/kotlin/app/src/main/java/com/bitwarden/myapplication/MainActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ class MainActivity : FragmentActivity() {
234234

235235
val loginBody = http.post(IDENTITY_URL + "connect/token") {
236236
contentType(ContentType.Application.Json)
237-
header("Auth-Email", Base64.getEncoder().encodeToString(EMAIL.toByteArray()))
238237
setBody(FormDataContent(Parameters.build {
239238
append("scope", "api offline_access")
240239
append("client_id", "web")

crates/bitwarden-uniffi/swift/iOS/App/ContentView.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,7 @@ struct ContentView: View {
160160
let (loginDataJson, _) = try await http.data(
161161
for: request(
162162
method: "POST", url: IDENTITY_URL + "connect/token",
163-
fn: { r in
164-
r.setValue(
165-
EMAIL.data(using: .utf8)?.base64EncodedString(),
166-
forHTTPHeaderField: "Auth-Email")
167-
r.setValue(
168-
"application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
169-
163+
fn: {
170164
var comp = URLComponents()
171165
comp.queryItems = [
172166
URLQueryItem(name: "scope", value: "api offline_access"),

0 commit comments

Comments
 (0)