mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-02-18 00:17:43 +01:00
- Use Avalonia-based webview control for Audible login with Chardonnay - Remove webview interfaces from IInteropFunctions - Remove Microsoft.Web.WebView2 package from WindowsConfigApp - Add Microsoft.Web.WebView2 to LibationWinForms - Remove all other login forms except the external login dialog (fallback in case webview doesn't work). The AudibleApi login with username/password doesn't work anymore. Need to use external browser login method.
23 lines
883 B
C#
23 lines
883 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using AudibleApi;
|
|
using AudibleUtilities;
|
|
using LibationWinForms.Dialogs.Login;
|
|
|
|
namespace LibationWinForms.Login
|
|
{
|
|
public class WinformLoginCallback : ILoginCallback
|
|
{
|
|
public string DeviceName { get; } = "Libation";
|
|
|
|
public Task<string> Get2faCodeAsync(string prompt) => throw new System.NotSupportedException();
|
|
public Task<(string password, string guess)> GetCaptchaAnswerAsync(string password, byte[] captchaImage)
|
|
=> throw new System.NotSupportedException();
|
|
public Task<(string name, string value)> GetMfaChoiceAsync(MfaConfig mfaConfig)
|
|
=> throw new System.NotSupportedException();
|
|
public Task<(string email, string password)> GetLoginAsync()
|
|
=> throw new System.NotSupportedException();
|
|
public Task ShowApprovalNeededAsync() => throw new System.NotSupportedException();
|
|
}
|
|
} |