chore: add oauth2 support (#130)
1.add oauth2 server and client example 2.add oauth2 impl in sse 3.add auth doc Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
b1542a6153
commit
afb8a905e5
1 changed files with 2480 additions and 7 deletions
|
|
@ -56,6 +56,11 @@ pub mod sse;
|
|||
#[cfg(feature = "transport-sse")]
|
||||
pub use sse::SseTransport;
|
||||
|
||||
#[cfg(all(feature = "transport-sse", feature = "auth"))]
|
||||
pub mod sse_auth;
|
||||
#[cfg(all(feature = "transport-sse", feature = "auth"))]
|
||||
pub use sse_auth::{AuthorizedSseClient, create_authorized_transport};
|
||||
|
||||
// #[cfg(feature = "tower")]
|
||||
// pub mod tower;
|
||||
|
||||
|
|
@ -64,6 +69,11 @@ pub mod sse_server;
|
|||
#[cfg(feature = "transport-sse-server")]
|
||||
pub use sse_server::SseServer;
|
||||
|
||||
#[cfg(feature = "auth")]
|
||||
pub mod auth;
|
||||
#[cfg(feature = "auth")]
|
||||
pub use auth::{AuthError, AuthorizationManager, AuthorizationSession, AuthorizedHttpClient};
|
||||
|
||||
// #[cfg(feature = "transport-ws")]
|
||||
// pub mod ws;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue