Skip to content

Commit

Permalink
fix: fix basic auth for local server
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jan 14, 2025
1 parent 647f40f commit b53c8dc
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 111 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Build package
run: cargo package
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
33 changes: 17 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ strip = true
opt-level = 's'

[workspace.package]
version = "0.2.4"
version = "0.2.5"
edition = "2021"
repository = "https://github.com/ldclabs/ic-tee"
keywords = ["tee", "canister", "icp", "nitro"]
Expand Down
3 changes: 0 additions & 3 deletions src/ic_tee_agent/src/http/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ pub static HEADER_IC_TEE_INSTANCE: HeaderName = HeaderName::from_static("ic-tee-
/// Authenticated caller principal (or anonymous principal)
pub static HEADER_IC_TEE_CALLER: HeaderName = HeaderName::from_static("ic-tee-caller");

/// TEE session ID that client should provide in subsequent requests
pub static HEADER_IC_TEE_SESSION: HeaderName = HeaderName::from_static("ic-tee-session");

/// The `UserSignature` struct represents an end user's signature and provides methods to
/// parse and validate the signature from HTTP headers.
///
Expand Down
Loading

0 comments on commit b53c8dc

Please sign in to comment.