add services::oidc::user_and_device_from_token(), use in auth

This commit is contained in:
lafleur authored and Ginger committed 2025-11-11 11:34:26 -05:00
1 parent 426b113c30
commit e9b387414f
3 files changed
+45 -5

No files matched your search

+1 -1
View File
@@ -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());