forked from trussed-dev/trussed-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch splits the trussed-auth crate into two crates: trussed-auth only defines the AuthExtension and can be used by clients or other backends implementing the extension. trussed-auth-backend contains the AuthBackend that implements the extension using the filesystem.
- Loading branch information
1 parent
a725ae6
commit 2e4f660
Showing
15 changed files
with
294 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,23 @@ | ||
# Copyright (C) Nitrokey GmbH | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
[package] | ||
name = "trussed-auth" | ||
version = "0.3.0" | ||
[workspace] | ||
members = ["backend", "extension"] | ||
resolver = "2" | ||
|
||
[workspace.package] | ||
authors = ["Nitrokey GmbH <[email protected]>"] | ||
edition = "2021" | ||
repository = "https://github.com/trussed-dev/trussed-auth" | ||
license = "Apache-2.0 OR MIT" | ||
description = "Authentication extension and backend for Trussed" | ||
repository = "https://github.com/trussed-dev/trussed-auth" | ||
|
||
[dependencies] | ||
chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["reduced-round"] } | ||
hkdf = "0.12.3" | ||
hmac = "0.12.1" | ||
rand_core = "0.6.4" | ||
[workspace.dependencies] | ||
serde = { version = "1", default-features = false } | ||
serde-byte-array = "0.1.2" | ||
sha2 = { version = "0.10.6", default-features = false } | ||
subtle = { version = "2.4.1", default-features = false } | ||
trussed = { version = "0.1.0", features = ["serde-extensions"] } | ||
littlefs2 = "0.4.0" | ||
|
||
[dev-dependencies] | ||
quickcheck = { version = "1.0.3", default-features = false } | ||
rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] } | ||
trussed = { version = "0.1.0", features = ["serde-extensions", "virt"] } | ||
admin-app = { version = "0.1.0", features = ["migration-tests"] } | ||
|
||
[patch.crates-io] | ||
trussed-auth = { path = "extension" } | ||
|
||
littlefs2 = { git = "https://github.com/sosthene-nitrokey/littlefs2.git", rev = "2b45a7559ff44260c6dd693e4cb61f54ae5efc53" } | ||
trussed = { git = "https://github.com/Nitrokey/trussed.git", rev = "be04182e2c74e73599a394e814d353bc4bf79484" } | ||
trussed-manage = { git = "https://github.com/trussed-dev/trussed-staging.git", tag = "manage-v0.1.0" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
Copyright (C) Nitrokey GmbH | ||
SPDX-License-Identifier: CC0-1.0 | ||
--> | ||
|
||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
Extracted from `trussed-auth` v0.3.0. | ||
|
||
### Breaking Changes | ||
|
||
- Remove the `dat` intermediary directory in file storage ([#39][]) | ||
|
||
[#39]: https://github.com/trussed-dev/trussed-auth/pull/39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (C) Nitrokey GmbH | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
[package] | ||
name = "trussed-auth-backend" | ||
version = "0.1.0" | ||
description = "Authentication backend for Trussed" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
serde.workspace = true | ||
trussed.workspace = true | ||
|
||
chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["reduced-round"] } | ||
hkdf = "0.12.3" | ||
hmac = "0.12.1" | ||
rand_core = "0.6.4" | ||
serde-byte-array = "0.1.2" | ||
sha2 = { version = "0.10.6", default-features = false } | ||
subtle = { version = "2.4.1", default-features = false } | ||
trussed-auth = { version = "0.3.0" } | ||
littlefs2 = "0.4.0" | ||
|
||
[dev-dependencies] | ||
quickcheck = { version = "1.0.3", default-features = false } | ||
rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] } | ||
trussed = { version = "0.1.0", features = ["serde-extensions", "virt"] } | ||
admin-app = { version = "0.1.0", features = ["migration-tests"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (C) Nitrokey GmbH | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
[package] | ||
name = "trussed-auth" | ||
version = "0.3.0" | ||
description = "Authentication extension for Trussed" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
serde.workspace = true | ||
trussed.workspace = true |
Oops, something went wrong.