AuthorizationProvider class abstract
Abstract interface for authorization providers
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkPermissions(
String userId, List< String> permissions, {String? resource, Map<String, dynamic> ? context}) → Future<Map< String, bool> > - Batch check multiple permissions
-
checkRoles(
String userId, List< String> roles, {String? resource, Map<String, dynamic> ? context}) → Future<Map< String, bool> > - Batch check multiple roles
-
getAuthorization(
String userId, {String? resource, String? action, Map< String, dynamic> ? context}) → Future<AuthorizationData> - Get user's current authorization data
-
getEffectivePermissions(
String userId, String resource) → Future< List< String> > - Get user's effective permissions for a resource
-
getEffectiveRoles(
String userId, String resource) → Future< List< String> > - Get user's effective roles for a resource
-
hasAllPermissions(
String userId, List< String> permissions, {String? resource, Map<String, dynamic> ? context}) → Future<bool> - Check if user has all of the specified permissions
-
hasAllRoles(
String userId, List< String> roles, {String? resource, Map<String, dynamic> ? context}) → Future<bool> - Check if user has all of the specified roles
-
hasAnyPermission(
String userId, List< String> permissions, {String? resource, Map<String, dynamic> ? context}) → Future<bool> - Check if user has any of the specified permissions
-
hasAnyRole(
String userId, List< String> roles, {String? resource, Map<String, dynamic> ? context}) → Future<bool> - Check if user has any of the specified roles
-
hasPermission(
String userId, String permission, {String? resource, Map< String, dynamic> ? context}) → Future<bool> - Check if user has specific permission
-
hasRole(
String userId, String role, {String? resource, Map< String, dynamic> ? context}) → Future<bool> - Check if user has specific role
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited