Add afdian as OIDC provider

This commit is contained in:
2025-06-22 02:22:19 +08:00
parent c6450757be
commit 6b0e5f919d
4 changed files with 119 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class AuthController(
.FirstOrDefaultAsync();
return challenge is null
? NotFound("Auth challenge was not found.")
: challenge.Account.AuthFactors.Where(e => e.EnabledAt != null).ToList();
: challenge.Account.AuthFactors.Where(e => e is { EnabledAt: not null, Trustworthy: >= 1 }).ToList();
}
[HttpPost("challenge/{id:guid}/factors/{factorId:guid}")]