Files
NugetSecretCredential/ICredentialProvider.cs
2025-03-20 22:24:55 +01:00

19 lines
552 B
C#

using System;
using NuGet.Protocol.Plugins;
namespace NugetSecretCredential;
internal interface ICredentialProvider
{
/// <summary>
/// Checks if implementation can provide credentials.
/// </summary>
/// <param name="uri">The of the target.</param>
Task<bool> CanProvideCredentialsAsync(Uri uri, CancellationToken cancel);
/// <summary>
/// Handle credential request.
/// </summary>
Task<GetAuthenticationCredentialsResponse> HandleRequestAsync(GetAuthenticationCredentialsRequest request, CancellationToken cancellationToken);
}