Skip to content

Commit

Permalink
refactor: drop workaround for missing basic_auth implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jul 1, 2022
1 parent a8278eb commit 57687f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/openid/inject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::{
openid::{Credentials, TokenProvider},
};
use async_trait::async_trait;
use reqwest_wasm_ext::ReqwestExt;
use tracing::instrument;

/// Allows injecting tokens.
Expand All @@ -24,7 +23,7 @@ impl TokenInjector for reqwest::RequestBuilder {
{
Ok(match credentials {
Credentials::Bearer(token) => self.bearer_auth(token),
Credentials::Basic(username, password) => self.basic_auth_ext(username, password),
Credentials::Basic(username, password) => self.basic_auth(username, password),
})
} else {
Ok(self)
Expand Down

0 comments on commit 57687f4

Please sign in to comment.