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.
First, depend on this package:
dependencies:
krypton: ^0.1.0
And then import it inside your dart code:
import 'package:krypton/krypton.dart';
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);
TODO
This package follows Semantic Versioning.
TODO: link to the public API documentation. Important to be exhaustive here.
TODO
- Install dart
- Clone the repository
- cd to the root directory of the repository
- Run
pub get
- Start coding!
- 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.
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.