public bool TryAuthenticate(AuthenticationParameters parameters, out Task <IAccessToken> token) { var source = new CancellationTokenSource(); return(TryAuthenticate(parameters, source.Token, out token)); }
public abstract Task <IAccessToken> Authenticate(AuthenticationParameters parameters, CancellationToken cancellationToken);
public Task <IAccessToken> Authenticate(AuthenticationParameters parameters) { var source = new CancellationTokenSource(); return(Authenticate(parameters, source.Token)); }
public abstract bool CanAuthenticate(AuthenticationParameters parameters);
public bool TryAuthenticate(AuthenticationParameters parameters, out Task <IAccessToken> token) { return(TryAuthenticate(parameters, AuthenticationCancellationToken, out token)); }
public Task <IAccessToken> Authenticate(AuthenticationParameters parameters) { return(Authenticate(parameters, AuthenticationCancellationToken)); }
public override bool CanAuthenticate(AuthenticationParameters parameters) { return(false); }
public override Task <IAccessToken> Authenticate(AuthenticationParameters parameters, CancellationToken cancellationToken) { return(null); }