Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Dec 16, 2024
1 parent a6fa310 commit 299a338
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/komainu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ url.workspace = true

[dev-dependencies]
serde_test.workspace = true
tracing-subscriber.workspace = true

[lints]
workspace = true
6 changes: 5 additions & 1 deletion lib/komainu/src/extractor.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::{
error::{Error, Result},
params::ParamStorage,
OptionExt,
};
use memchr::memchr;
use bytes::Bytes;

static URL_ENCODED_CONTENT_TYPE: http::HeaderValue =
Expand Down Expand Up @@ -128,9 +128,13 @@ impl BasicAuth {
#[cfg(test)]
mod test {
use super::BasicAuth;
use std::env;

#[test]
fn parse_basic_auth_rfc() {
env::set_var("RUST_LOG", "debug");
tracing_subscriber::fmt::init();

let mut map = http::HeaderMap::new();
map.insert(
http::header::AUTHORIZATION,
Expand Down
5 changes: 1 addition & 4 deletions lib/komainu/src/flow/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ where

let client = fallible!(
client_extractor
.extract(
client_credentials.client_id(),
Some(client.credentials.client_secret())
)
.extract(client_id, Some(client_secret))
.await
);

Expand Down
2 changes: 0 additions & 2 deletions lib/komainu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
extern crate tracing;

use self::flow::PkcePayload;
use bytes::Bytes;
use memchr::memchr;
use std::{borrow::Cow, future::Future};
use subtle::ConstantTimeEq;

Expand Down

0 comments on commit 299a338

Please sign in to comment.