AuthGenerator class
Generates lib/src/middleware/zfa_auth.g.dart from collected
@RequiresAuth annotation metadata.
Produces:
- A
ZfaAuthGuardbase class with role-checking logic - Per-class interceptor extensions that wrap annotated methods
- Role hierarchy resolution via built-in
Role.satisfies()
Constructors
- AuthGenerator({String packageName = 'zuraffa'})
Properties
- hasEntries → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageName → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAuthEntry(
{required String className, required String methodName, required String importUri, required String returnType, required List< ParameterInfo> parameters, required List<String> roles, required AuthorizationMode mode, required bool isClassLevel}) → void -
generate(
) → String -
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