casl 1.0.0 copy "casl: ^1.0.0" to clipboard
casl: ^1.0.0 copied to clipboard

Isomorphic authorisation for Dart. Define what a user can do with rules, ask `ability.can(...)`, and share the exact same rules with a CASL.js backend.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add casl

With Flutter:

 $ flutter pub add casl

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  casl: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:casl/casl.dart';
2
likes
160
points
164
downloads

Documentation

API reference

Publisher

verified publisherteispace.com

Weekly Downloads

Isomorphic authorisation for Dart. Define what a user can do with rules, ask `ability.can(...)`, and share the exact same rules with a CASL.js backend.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#authorization #permissions #security #casl #rbac

License

MIT (license)

Dependencies

meta

More

Packages that depend on casl