Skip to content

Commit

Permalink
2.x.x context changes (#30)
Browse files Browse the repository at this point in the history
* Update HBBasicAuthRequestContext.init to take Channel paramter

* Use HB 2.0.0-alpha.3
  • Loading branch information
adam-fowler authored Feb 20, 2024
1 parent 9974057 commit f3a2cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit f3a2cdb

Please sign in to comment.