AuthMiddlewareConfig constructor

const AuthMiddlewareConfig({
  1. required AuthType authType,
  2. AuthManager? authManager,
  3. String guard = 'api',
  4. String? realm,
  5. String? apiKeyHeader,
  6. Future<Authenticatable?> customAuthenticator(
    1. Request
    )?,
  7. List<String> roles = const [],
  8. List<String> permissions = const [],
  9. bool cacheUser = false,
  10. MiddlewarePriority priority = MiddlewarePriority.auth,
  11. String name = 'auth',
})

Implementation

const AuthMiddlewareConfig({
  required this.authType,
  this.authManager,
  this.guard = 'api',
  this.realm,
  this.apiKeyHeader,
  this.customAuthenticator,
  this.roles = const [],
  this.permissions = const [],
  this.cacheUser = false,
  this.priority = MiddlewarePriority.auth,
  this.name = 'auth',
});