FusionAuth / fusionauth-dart-client

A Dart client for FusionAuth, Flutter compatible
https://fusionauth.io
Apache License 2.0
9 stars 6 forks source link
dart flutter fusionauth fusionauth-client rest-client

This repo is out of date and is archived. Check out the FusionAuth Dart Client Library docs. The dart client is being deprecated and the best path forward is to build the client from the FusionAuth OpenAPI Specification.

FusionAuth Dart Client semver 2.0.0 compliant

If you're integrating FusionAuth with a Dart or Flutter application, this library will speed up your development time.

For additional information and documentation on FusionAuth refer to https://fusionauth.io.

A library for FusionAuth Dart developers.


Known limitations

Usage

A simple usage example:

import 'dart:convert';

import 'package:fusionauth_dart_client/fusionauth_dart_client.dart';

void main() async {
  var client = FusionAuthClient('bf69486b-4733-4470-a592-f1bfce7af580',
      'https://local.fusionauth.io', null);

  var response = await client.searchUsersByQuery(SearchRequest(
      search: UserSearchCriteria(queryString: "email:test@example.com")));

  if (response.successResponse != null) {
    print(json.encode(response.successResponse.users));
  }
}

pubspec.yaml:

dependencies:
  fusionauth_dart_client: ^1.21.0

Contributors

Questions and support

If you have a question or support issue regarding this client library, we'd love to hear from you.

If you have a paid edition with support included, please open a ticket in your account portal. Learn more about paid editions here.

Otherwise, please post your question in the community forum.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-dart-client.

License

This code is available as open source under the terms of the Apache v2.0 License.