AuthPluginEndpointFixture<TContext> class
final
Bridges real portable plugin descriptors to AuthTestHttpClient.
The bridge performs no framework authentication, CSRF, origin, or rate-limit enforcement. Those policies belong in adapter integration tests. It invokes the endpoint's real request and response codecs, making it useful for end-to-end tests shared by multiple framework adapters.
Constructors
-
AuthPluginEndpointFixture({required Iterable<
AuthEndpointDescriptor< endpoints, required AuthTestInvocationFactory<TContext> >TContext> invocation, String basePath = '/auth', String csrfToken = 'fixture-csrf-token'}) -
Creates a bridge for
endpoints.
Properties
- basePath → String
-
Prefix expected before each portable endpoint path.
final
- csrfToken → String
-
Test-only CSRF value returned to clients that use mutating operations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
invocation
→ AuthTestInvocationFactory<
TContext> -
Supplies framework-neutral context, identity, and session control.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
respond(
AuthTestHttpRequest request) → Future< AuthTestHttpResponse> - Handles one request from AuthTestHttpClient.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited