lb_auth 1.0.7 lb_auth: ^1.0.7 copied to clipboard
Logbot authentication client to be used on all the Logbot SDK Flutter packages
Logbot Auth SDK for Flutter #
This is a package for authentication and authorization to the Logbot platform and APIs.
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
Requirements #
Dart 2.17 or later
Installation & Usage #
Add the dependencies from pub.dev:
dependencies:
lb_auth:
lb_auth
is always required to make authorized calls to the APIs.
To use the SDK on you application see the example below:
import 'package:lb_auth/lb_auth.dart';
class Example {
Future<void> run() async {
/// Initialize Logbot SDK by logging in with Logbot Credentials
await LogbotAuth.init(LogbotCredentials(
username: username,
password: password,
clientId: clientId,
clientSecret: clientSecret,
));
}
}
Tests #
To run all tests:
flutter test
Documentation for API Endpoints #
All URIs are relative to https://iam.logbotiot.cloud
Class | Method | HTTP request | Description |
---|---|---|---|
AuthApi | loginOrRefresh | GET /auth/realms/master/protocol/openid-connect/token | Login or refresh token |
Documentation For Models #
Author #
Logbot SRL info@logbot.cloud