Skip to content

Commit

Permalink
Changes for hb-auth 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Nov 19, 2024
1 parent 0730d5e commit 0d811b8
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions auth-jwt/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-fluent.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "5.0.0-beta.4"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
Expand All @@ -26,7 +26,7 @@ let package = Package(
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "Bcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdBcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdBasicAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdFluent", package: "hummingbird-fluent"),
Expand Down
2 changes: 1 addition & 1 deletion auth-jwt/Sources/App/Models/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

import Bcrypt
import HummingbirdBcrypt
import FluentKit
import Foundation
import Hummingbird
Expand Down
6 changes: 3 additions & 3 deletions auth-otp/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.3.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-postgres.git", from: "0.5.0"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0-rc"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"),
Expand All @@ -22,10 +22,10 @@ let package = Package(
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "Bcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdBcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdBasicAuth", package: "hummingbird-auth"),
.product(name: "OTP", package: "hummingbird-auth"),
.product(name: "HummingbirdOTP", package: "hummingbird-auth"),
.product(name: "Mustache", package: "swift-mustache"),
.product(name: "HummingbirdPostgres", package: "hummingbird-postgres"),
.product(name: "PostgresMigrations", package: "hummingbird-postgres"),
Expand Down
2 changes: 1 addition & 1 deletion auth-otp/Sources/App/Middleware/TOTPAuthenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import HTTPTypes
import Hummingbird
import HummingbirdAuth
import OTP
import HummingbirdOTP

struct TOTPAuthenticator<Users: UserRepository>: AuthenticatorMiddleware {
typealias Context = AppSessionRequestContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Bcrypt
import HummingbirdBcrypt
import Foundation
import Hummingbird
import Logging
Expand Down
2 changes: 1 addition & 1 deletion auth-srp/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-fluent.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.7.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
Expand Down
4 changes: 2 additions & 2 deletions sessions/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-fluent.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.48.5"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.7.0"),
Expand All @@ -24,7 +24,7 @@ let package = Package(
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "Bcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdBcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdBasicAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdFluent", package: "hummingbird-fluent"),
Expand Down
6 changes: 3 additions & 3 deletions todos-auth-fluent/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.3.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-compression.git", from: "2.0.0-rc"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-compression.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-fluent.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0-beta.1"),
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.48.5"),
Expand All @@ -24,7 +24,7 @@ let package = Package(
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "Bcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdBcrypt", package: "hummingbird-auth"),
.product(name: "HummingbirdAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdBasicAuth", package: "hummingbird-auth"),
.product(name: "HummingbirdCompression", package: "hummingbird-compression"),
Expand Down
2 changes: 1 addition & 1 deletion todos-auth-fluent/Sources/App/Models/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
//
//===----------------------------------------------------------------------===//

import Bcrypt
import FluentKit
import Foundation
import Hummingbird
import HummingbirdAuth
import HummingbirdBasicAuth
import HummingbirdBcrypt
import HummingbirdFluent
import NIOPosix

Expand Down
2 changes: 1 addition & 1 deletion webauthn/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.2.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0-rc.5"),
.package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-fluent.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0-beta.1"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.7.0"),
Expand Down
2 changes: 1 addition & 1 deletion websocket-chat/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-websocket.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-websocket.git", branch: "split-ws-client"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion websocket-echo/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-websocket.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-websocket.git", branch: "split-ws-client"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
],
targets: [
Expand Down

0 comments on commit 0d811b8

Please sign in to comment.