Skip to content

Commit

Permalink
Merge pull request #175 from glaeqen/fix-login
Browse files Browse the repository at this point in the history
Add new headers required by the Bitwarden server
  • Loading branch information
doy authored May 21, 2024
2 parents f84262e + 2f7ebc1 commit d158055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ impl Client {
let res = client
.post(&self.identity_url("/connect/token"))
.form(&connect_req)
.header("Bitwarden-Client-Name", env!("CARGO_PKG_NAME"))
.header("Bitwarden-Client-Version", env!("CARGO_PKG_VERSION"))
.header(
"auth-email",
crate::base64::encode_url_safe_no_pad(email),
Expand Down

0 comments on commit d158055

Please sign in to comment.