platform/lib/strategy.dart

12 lines
410 B
Dart
Raw Normal View History

2016-05-03 04:13:19 +00:00
part of angel_auth;
/// A function that handles login and signup for an Angel application.
abstract class AuthStrategy {
String name;
/// Authenticates or rejects an incoming user.
2016-05-09 20:47:28 +00:00
Future authenticate(RequestContext req, ResponseContext res, [AngelAuthOptions options]);
2016-05-03 04:13:19 +00:00
/// Determines whether a signed-in user can log out or not.
Future<bool> canLogout(RequestContext req, ResponseContext res);
}