mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
add services::oidc::user_and_device_from_token(), use in auth
This commit is contained in:
1 parent
426b113c30
commit
e9b387414f
3 files changed
+45
-5
No files matched your search
@@ -46,7 +46,7 @@ pub(crate) async fn authorize(
|
||||
|
||||
tracing::debug!("submitting OIDC authorisation for token : {token:#?}");
|
||||
// Get the user id from the token and add it to the query.
|
||||
let (owner_id, _) = services.oidc.get_user_for_token(token)?;
|
||||
let (owner_id, _) = services.oidc.user_and_device_from_token(token)?;
|
||||
let mut query_with_user_id = query.clone();
|
||||
query_with_user_id.username = Some(owner_id.localpart().to_string());
|
||||
|
||||
|
||||
Reference in new issue
Block a user