AuthenticationRequest class

The authentication request — carries all connection context for credential extraction. Works for HTTP, WebSocket, mTLS — providers check what's available.

Constructors

AuthenticationRequest({String? authorization, Map<String, String> headers = const {}, Map<String, String> queryParams = const {}, String path = '', String method = '', List? clientCertificates, bool isTls = false, String? remoteAddress})

Properties

authorization String?
The raw Authorization header value (e.g., "Bearer
final
clientCertificates List?
Client X.509 certificates from mTLS (null if not TLS or no client cert).
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
All request headers.
final
isTls bool
Whether the connection is over TLS.
final
method String
The HTTP method.
final
path String
The request path.
final
queryParams Map<String, String>
Query parameters (useful for WebSocket token auth).
final
remoteAddress String?
Remote address of the client.
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited