Files
tiku-backend.net/Tiku.Application/Auth/IIdentityProvider.cs
xiong c497a3ca8d
Some checks failed
ci / release-gate (push) Has been cancelled
清理代码
2026-08-03 12:31:39 +08:00

23 lines
548 B
C#

namespace Tiku.Application.Auth;
public sealed record IdentityProviderRequest(
Guid TenantId,
string Provider,
string Identifier,
string Secret,
string? IpAddress,
string? UserAgent);
public sealed record IdentityProviderResult(
string Provider,
string Subject,
string? Phone,
string? Email,
string? DisplayName);
public interface IIdentityProvider
{
Task<IdentityProviderResult> AuthenticateAsync(
IdentityProviderRequest request,
CancellationToken cancellationToken = default);
}