lb_auth 1.0.5 copy "lb_auth: ^1.0.5" to clipboard
lb_auth: ^1.0.5 copied to clipboard

outdated

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.flutter-io.cn:

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 #

  • AuthenticationResponse

Author #

Logbot SRL info@logbot.cloud

1
likes
0
points
36
downloads

Publisher

verified publisherlogbot.cloud

Weekly Downloads

Logbot authentication client to be used on all the Logbot SDK Flutter packages

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

http, intl, jwt_decoder, lb_commons, meta

More

Packages that depend on lb_auth