mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
oidc: add debug/trace logs
This commit is contained in:
1 parent
56bd11013f
commit
4e50064740
6 files changed
+26
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user