No description
Find a file
Shan Shaji 28d46dd7c2 chore: upgrade dependencies
The package updates are done by pub when running `dart pub get` [1] as
the SDK versions are changed.

- [1] https://dart.dev/tools/pub/packages#get-dependencies-for-production

Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
Link: https://lore.proxmox.com/20260603153423.3227-6-s.shaji@proxmox.com
2026-06-17 15:17:56 +02:00
assets fix: ui: update proxmox logo shown inside the login screen 2025-12-17 14:51:21 +01:00
lib cleanup: replace use of deprecated props and fix dart analyze issues 2026-04-02 13:26:28 +02:00
test tree wide: check if build context is still valid after async call 2024-04-09 08:15:26 +02:00
.gitignore initial commit 2020-07-23 14:43:51 +02:00
.metadata initial commit 2020-07-23 14:43:51 +02:00
analysis_options.yaml linter: disable avoid_print rule 2024-04-09 08:15:26 +02:00
LICENSE initial commit 2020-07-23 14:43:51 +02:00
pubspec.lock chore: upgrade dependencies 2026-06-17 15:17:56 +02:00
pubspec.yaml upgrade dependencies 2025-09-23 13:57:23 +02:00
README.md update readme 2020-07-28 12:43:30 +02:00

proxmox_login_manager

A basic login management library which handles authentication in combination with the proxmox_dart_api_client library.

You need to build the model classes before using it, to do this use:

flutter packages pub run build_runner build

Basic usage:

ProxmoxLoginSelector(
    onLogin: (ProxmoxApiClient client) => whatever you want to do with the client,
),

This will give you an authenticated ProxmoxApiClient for usage in your project.

The latest session will be saved and can be recovered.

loginStorage = await ProxmoxLoginStorage.fromLocalStorage();
final apiClient = await loginStorage.recoverLatestSession();

This will either return an authenticated ProxmoxApiClient or will result in an Exception (ProxmoxApiException).

To clear all session on logout you can use:

ProxmoxLoginStorage.fromLocalStorage()
                .then((storage) => storage?.invalidateAllSessions());