tangled
alpha
login
or
join now
nekomimi.pet
/
jacquard
forked from
nonbinary.computer/jacquard
0
fork
atom
A better Rust ATProto crate
0
fork
atom
overview
issues
pulls
pipelines
clean up debug logs
nekomimi.pet
3 months ago
8e89ab79
87e15bae
verified
This commit was signed with the committer's
known signature
.
nekomimi.pet
SSH Key Fingerprint:
SHA256:knUvGhH8rbrdqbzO9WXAIaTK0LrdYw2UC0qWB43Ic0Q=
+4
-21
4 changed files
expand all
collapse all
unified
split
crates
jacquard
src
client
bff_session.rs
jacquard-axum
src
service_auth.rs
jacquard-oauth
src
client.rs
request.rs
+3
-10
crates/jacquard-axum/src/service_auth.rs
···
572
572
573
573
match codec {
574
574
// p256-pub (0x1200)
575
575
-
[0x80, 0x24] => PublicKey::from_p256_bytes(key_material).inspect_err(|e| {
576
576
-
tracing::error!("Failed to parse p256 public key: {}", e);
577
577
-
}).ok(),
575
575
+
[0x80, 0x24] => PublicKey::from_p256_bytes(key_material).ok(),
578
576
// secp256k1-pub (0xe7)
579
579
-
[0xe7, 0x01] => PublicKey::from_k256_bytes(key_material).inspect_err(|e| {
580
580
-
tracing::error!("Failed to parse secp256k1 public key: {}", e);
581
581
-
}).ok(),
582
582
-
_ => {
583
583
-
tracing::error!("Unsupported public key multicodec: {:?}", codec);
584
584
-
None
585
585
-
},
577
577
+
[0xe7, 0x01] => PublicKey::from_k256_bytes(key_material).ok(),
578
578
+
_ => None,
586
579
}
587
580
}
588
581
-2
crates/jacquard-oauth/src/client.rs
···
280
280
token_set,
281
281
};
282
282
283
283
-
dbg!(&client_data);
284
284
-
285
283
self.create_session(client_data).await
286
284
}
287
285
Err(e) => Err(e.into()),
-5
crates/jacquard-oauth/src/request.rs
···
517
517
prompt: prompt.map(CowStr::from),
518
518
};
519
519
520
520
-
#[cfg(feature = "tracing")]
521
521
-
tracing::debug!(
522
522
-
parameters = ?parameters,
523
523
-
"par:"
524
524
-
);
525
520
if metadata
526
521
.server_metadata
527
522
.pushed_authorization_request_endpoint
+1
-4
crates/jacquard/src/client/bff_session.rs
···
107
107
})?;
108
108
Ok(Some(data))
109
109
}
110
110
-
Err(gloo_storage::errors::StorageError::KeyNotFound(err)) => {
111
111
-
tracing::debug!("gloo error: {}", err);
112
112
-
Ok(None)
113
113
-
}
110
110
+
Err(gloo_storage::errors::StorageError::KeyNotFound(_)) => Ok(None),
114
111
Err(e) => Err(SessionStoreError::Other(
115
112
format!("SessionStorage error: {}", e).into(),
116
113
)),