Skip to content

Commit 94b575a

Browse files
committed
renamed to authorization
1 parent c67d25f commit 94b575a

File tree

34 files changed

+323
-211
lines changed

34 files changed

+323
-211
lines changed

quickwit/Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quickwit/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
resolver = "2"
33
members = [
44
"quickwit-actors",
5-
"quickwit-auth",
5+
"quickwit-authorize",
66
"quickwit-aws",
77
"quickwit-cli",
88
"quickwit-cluster",
@@ -42,7 +42,7 @@ members = [
4242
# from the default member to ease build/deps.
4343
default-members = [
4444
"quickwit-actors",
45-
"quickwit-auth",
45+
"quickwit-authorize",
4646
"quickwit-aws",
4747
"quickwit-cli",
4848
"quickwit-cluster",
@@ -305,7 +305,7 @@ opendal = { version = "0.44", default-features = false }
305305
reqsign = { version = "0.14", default-features = false }
306306

307307
quickwit-actors = { path = "quickwit-actors" }
308-
quickwit-auth = { path = "quickwit-auth" }
308+
quickwit-authorize = { path = "quickwit-authorize" }
309309
quickwit-aws = { path = "quickwit-aws" }
310310
quickwit-cli = { path = "quickwit-cli" }
311311
quickwit-cluster = { path = "quickwit-cluster" }

quickwit/quickwit-auth/Cargo.toml renamed to quickwit/quickwit-authorize/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "quickwit-auth"
2+
name = "quickwit-authorize"
33
version.workspace = true
44
edition.workspace = true
55
homepage.workspace = true

quickwit/quickwit-codegen/example/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tower = { workspace = true }
2727
utoipa = { workspace = true }
2828

2929
quickwit-actors = { workspace = true }
30-
quickwit-auth = { workspace = true }
30+
quickwit-authorize = { workspace = true }
3131
quickwit-common = { workspace = true }
3232
quickwit-proto = { workspace = true }
3333

@@ -41,4 +41,4 @@ quickwit-codegen = { workspace = true }
4141

4242
[features]
4343
testsuite = ["mockall"]
44-
enterprise = [ "quickwit-auth/enterprise" ]
44+
enterprise = [ "quickwit-authorize/enterprise" ]

quickwit/quickwit-codegen/example/src/authorization.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@
1515
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1616
// SOFTWARE.
1717

18-
use quickwit_auth::{Authorization, AuthorizationError, AuthorizationToken, StreamAuthorization};
18+
use quickwit_authorize::{Authorization, AuthorizationError, AuthorizationToken, StreamAuthorization};
1919

2020
use crate::{GoodbyeRequest, HelloRequest, PingRequest};
2121

2222
impl Authorization for HelloRequest {
2323
fn attenuate(
2424
&self,
25-
auth_token: quickwit_auth::AuthorizationToken,
26-
) -> Result<quickwit_auth::AuthorizationToken, AuthorizationError> {
25+
auth_token: AuthorizationToken,
26+
) -> Result<AuthorizationToken, AuthorizationError> {
2727
Ok(auth_token)
2828
}
2929
}
3030

3131
impl Authorization for GoodbyeRequest {
3232
fn attenuate(
3333
&self,
34-
auth_token: quickwit_auth::AuthorizationToken,
34+
auth_token: AuthorizationToken,
3535
) -> Result<AuthorizationToken, AuthorizationError> {
3636
Ok(auth_token)
3737
}
3838
}
3939

4040
impl StreamAuthorization for PingRequest {
4141
fn attenuate(
42-
auth_token: quickwit_auth::AuthorizationToken,
42+
auth_token: AuthorizationToken,
4343
) -> Result<AuthorizationToken, AuthorizationError> {
4444
Ok(auth_token)
4545
}

quickwit/quickwit-codegen/example/src/codegen/hello.rs

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)