oidc: add debug/trace logs

This commit is contained in:
lafleur authored and Ginger committed 2025-11-11 11:34:26 -05:00
1 parent 56bd11013f
commit 4e50064740
6 files changed
+26 -14

No files matched your search

+5 -1
View File
@@ -22,7 +22,7 @@ pub(crate) async fn authorize(
Query(query): Query<AuthorizationQuery>,
oauth: OidcRequest,
) -> Result<OidcResponse> {
tracing::trace!("processing OAuth request: {query:?}");
tracing::trace!("processing OAuth request: {query:#?}");
// Enforce MSC2964's restrictions on OAuth2 flow.
let Ok(scope) = percent_decode_str(&query.scope).decode_utf8() else {
return Err(err!(Request(Unknown("the scope could not be percent-decoded"))));
@@ -50,6 +50,10 @@ pub(crate) async fn authorize(
},
}
// TODO register the device ID ?
tracing::debug!(
"submitting OIDC authorisation for token : {:#?}",
oauth.authorization_header().unwrap()
);
services
.oidc