diff --git a/Package.swift b/Package.swift index d026455..5e3f6d7 100644 --- a/Package.swift +++ b/Package.swift @@ -11,7 +11,7 @@ let package = Package( .library(name: "HummingbirdAuthXCT", targets: ["HummingbirdAuthXCT"]), ], dependencies: [ - .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-alpha.1"), + .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-alpha.3"), .package(url: "https://github.com/apple/swift-crypto.git", "1.0.0"..<"4.0.0"), .package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"), .package(url: "https://github.com/swift-extras/swift-extras-base64.git", .upToNextMinor(from: "0.7.0")), diff --git a/Sources/HummingbirdAuth/Authenticator/AuthRequestContext.swift b/Sources/HummingbirdAuth/Authenticator/AuthRequestContext.swift index 6bcd06f..31f2d60 100644 --- a/Sources/HummingbirdAuth/Authenticator/AuthRequestContext.swift +++ b/Sources/HummingbirdAuth/Authenticator/AuthRequestContext.swift @@ -35,11 +35,8 @@ public struct HBBasicAuthRequestContext: HBAuthRequestContext { /// - applicationContext: Context from Application that instigated the request /// - channel: Channel that generated this request /// - logger: Logger - public init( - allocator: ByteBufferAllocator, - logger: Logger - ) { - self.coreContext = .init(allocator: allocator, logger: logger) + public init(channel: Channel, logger: Logger) { + self.coreContext = .init(allocator: channel.allocator, logger: logger) self.auth = .init() } }