Skip to main content

rocketmq_auth/
lib.rs

1// Copyright 2023 The RocketMQ Rust Authors
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![allow(dead_code)]
16
17pub mod authentication;
18pub mod authorization;
19pub mod config;
20pub mod migration;
21pub mod runtime;
22
23// Re-export commonly used authentication types
24pub use authentication::context::default_authentication_context::DefaultAuthenticationContext;
25pub use authentication::evaluator::AuthenticationEvaluator;
26pub use authentication::factory::AuthenticationFactory;
27pub use authentication::provider::AuthenticationMetadataProvider;
28pub use authentication::provider::AuthenticationProvider;
29pub use authentication::provider::DefaultAuthenticationProvider;
30pub use authentication::strategy::AllowAllAuthenticationStrategy;
31pub use authentication::strategy::AuthenticationStrategy;
32
33// Re-export commonly used authorization types
34pub use authorization::context::default_authorization_context::DefaultAuthorizationContext;
35pub use authorization::evaluator::AuthorizationEvaluator;
36pub use authorization::provider::AuthorizationProvider;
37pub use authorization::strategy::abstract_authorization_strategy::AuthorizationStrategy;
38pub use runtime::AuthRuntime;
39pub use runtime::AuthRuntimeBuilder;
40pub use runtime::AuthenticationService;
41pub use runtime::AuthorizationService;
42pub use runtime::ProviderRegistry;