Expand description
Authentication handlers – login via password, OAuth, API key.
Discovers login methods from HTML, executes password-based login via HTTP (no browser needed for standard forms), and creates authenticated sessions.
Structs§
- Consent
Form - A parsed consent form from an OAuth provider.
- Html
Form - A parsed HTML form with action URL and fields.
- Login
Form Field - A field in a login form.
Enums§
- Login
Method - Discovered login method for a site.
- MfaType
- Type of MFA challenge.
- OAuth
Result - Result of an HTTP-native OAuth flow.
Functions§
- complete_
oauth_ consent - Complete an OAuth consent form by POSTing approval.
- discover_
login_ method - Discover the login method for a site by fetching its homepage and login page.
- handle_
oauth_ mfa - Submit an MFA code via form POST.
- login_
api_ key - Create an API-key authenticated session (no network call needed).
- login_
bearer - Create a bearer-token authenticated session (no network call needed).
- login_
oauth_ http - Attempt OAuth login via HTTP redirect chain (no browser).
- login_
password - Log in with username and password via HTML form POST.