Allow local access tokens to be used with OIDC backends (closes #1311 closes stalwartlabs/webadmin#52)

This commit is contained in:
mdecimus
2025-07-25 21:06:23 +02:00
parent 02f6a114e0
commit 654f296d45
37 changed files with 369 additions and 278 deletions

View File

@@ -12,7 +12,7 @@ use common::{
};
use directory::{
QueryBy, Type,
QueryParams, Type,
backend::internal::{PrincipalField, PrincipalSet, PrincipalValue, manage::ManageDirectory},
};
use mail_auth::MX;
@@ -279,7 +279,7 @@ async fn lookup_sql() {
.core
.storage
.directory
.query(QueryBy::Name("john@foobar.org"), true)
.query(QueryParams::name("john@foobar.org").with_return_member_of(true))
.await
.unwrap()
.unwrap();
@@ -288,7 +288,7 @@ async fn lookup_sql() {
.core
.storage
.directory
.query(QueryBy::Name("jane@foobar.org"), true)
.query(QueryParams::name("jane@foobar.org").with_return_member_of(true))
.await
.unwrap()
.unwrap();