19 lines
552 B
C#
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);
|
|
}
|