Skip to content

Commit

Permalink
Update sessions and webauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Apr 29, 2024
1 parent 30a5dc0 commit a428940
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sessions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ EXPOSE 8080

# Start the Hummingbird service when the image is run, default to listening on 8080 in production environment
ENTRYPOINT ["./App"]
CMD ["--hostname", "0.0.0.0", "--port", "8080"]
CMD ["--hostname", "0.0.0.0", "--port", "8080", "--in-memory-database"]
6 changes: 5 additions & 1 deletion sessions/Sources/App/Application+build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ func buildApplication(_ arguments: AppArguments, configuration: ApplicationConfi
let userController = UserController(fluent: fluent, sessionStorage: sessionStorage)
userController.addRoutes(to: router.group("user"))

var application = Application(router: router, server: .http1())
var application = Application(
router: router,
server: .http1(),
configuration: configuration
)
application.addServices(fluent, persist)
return application
}
Binary file modified sessions/session-persist-async-test.paw
Binary file not shown.
2 changes: 1 addition & 1 deletion webauthn/Sources/App/Application+build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func buildApplication(_ arguments: AppArguments) async throws -> some Applicatio
let sessionStorage = SessionStorage(memoryPersist)

// load mustache template library
let library = try await MustacheLibrary(directory: "templates")
let library = try await MustacheLibrary(directory: "resources/templates")
assert(library.getTemplate(named: "home") != nil, "Set your working directory to the root folder of this example to get it to work")

let router = RouterBuilder(context: WebAuthnRequestContext.self) {
Expand Down
File renamed without changes.

0 comments on commit a428940

Please sign in to comment.