Skip to content

krypton-org/krypton-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Krypton client for Flutter and Dart.

This is the Dart library to connect to Krypton Authentification server. It is based on the Krypton client specification.

Getting started

Installation

First, depend on this package:

dependencies:
  krypton: ^0.1.0

And then import it inside your dart code:

import 'package:krypton/krypton.dart';

Usage

Basic example

  KryptonClient kryptonClient = KryptonClient("https://localhost:5000"); // assuming Krypton Auth's MongoDB instance is running on this URL
  try {
    await kryptonClient.register("nicolas@example.com", "1234unsecurepassword");
    await kryptonClient.login("nicolas@example.com", "1234unsecurepassword");
  } catch(err) {
    print(err);

Advanced example

TODO

Public API

This package follows Semantic Versioning.

TODO: link to the public API documentation. Important to be exhaustive here.

Contributing

Contributing policy

TODO

Development setup

  • Install dart
  • Clone the repository
  • cd to the root directory of the repository
  • Run pub get
  • Start coding!

Development workflow

  • The development follows TDD's principles. Write tests first, then make it pass.
  • We follow the "GitLab Workflow logic", except on GitHub ;). In short:
    • Nothing is pushed directly to master.
    • Every new feature or bug fix start with opening an issue.
    • Then, discuss the issue until a consensus is found.
    • Either:
      • Clone the repository. Create a new branch and work there. <<< Preferred way
      • Fork the repository. Create a new branch and work there.
    • Finally, send a pull-request to the original repository linking to the previously created issue.

License and copyright

This project is licensed under the MIT License. No copyright assignment is necessary to contribute, so copyrights are shared among contributors. This project relies on third-party packages licensed under various OSI-approved MIT-like licenses - visit THIRD-PARTY for details.

About

Krypton client for Flutter applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published