EndpointAuthorizableChannelTokenAuthorizationDelegate<T extends EndpointAuthorizationData> class

Implements EndpointAuthorizableChannelAuthorizationDelegate to grab the authorization data from the authorizationEndpoint using the POST request powered by the http package.

Implemented types
Annotations
  • @immutable

Properties

authorizationEndpoint Uri
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
onAuthFailed EndpointAuthFailedCallback?
Added as an option to get a detailed information about the fail.
final
overrideContentTypeHeader bool
final
parser EndpointAuthorizableChannelTokenAuthorizationParser<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorizationData(String socketId, String channelName) Future<T>
Sends the POST request to the authorizationEndpoint.
override
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

Static Methods

forPresenceChannel({required Uri authorizationEndpoint, required Map<String, String> headers, bool overrideContentTypeHeader = true, EndpointAuthorizableChannelTokenAuthorizationParser<PresenceChannelAuthorizationData> parser = _defaultParserForPresenceChannel, EndpointAuthFailedCallback? onAuthFailed}) EndpointAuthorizableChannelTokenAuthorizationDelegate<PresenceChannelAuthorizationData>
Providing an instance of this class to authorize to PresenceChannels with PresenceChannelAuthorizationData.
forPrivateChannel({required Uri authorizationEndpoint, required Map<String, String> headers, bool overrideContentTypeHeader = true, EndpointAuthorizableChannelTokenAuthorizationParser<PrivateChannelAuthorizationData> parser = _defaultParserForPrivateChannel, EndpointAuthFailedCallback? onAuthFailed}) EndpointAuthorizableChannelTokenAuthorizationDelegate<PrivateChannelAuthorizationData>
Providing an instance of this class to authorize to PrivateChannels with PrivateChannelAuthorizationData.
forPrivateEncryptedChannel({required Uri authorizationEndpoint, required Map<String, String> headers, bool overrideContentTypeHeader = true, EndpointAuthorizableChannelTokenAuthorizationParser<PrivateEncryptedChannelAuthorizationData> parser = _defaultParserForPrivateEncryptedChannel, EndpointAuthFailedCallback? onAuthFailed}) EndpointAuthorizableChannelTokenAuthorizationDelegate<PrivateEncryptedChannelAuthorizationData>
Providing an instance of this class to authorize to PrivateEncryptedChannels with PrivateEncryptedChannelAuthorizationData.