diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/sellershut/src/server/api/routes/auth/authorised.rs | 1 | ||||
| -rw-r--r-- | crates/sellershut/src/server/api/routes/auth/mod.rs | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/crates/sellershut/src/server/api/routes/auth/authorised.rs b/crates/sellershut/src/server/api/routes/auth/authorised.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/crates/sellershut/src/server/api/routes/auth/authorised.rs @@ -0,0 +1 @@ + diff --git a/crates/sellershut/src/server/api/routes/auth/mod.rs b/crates/sellershut/src/server/api/routes/auth/mod.rs index 9efd542..7414b77 100644 --- a/crates/sellershut/src/server/api/routes/auth/mod.rs +++ b/crates/sellershut/src/server/api/routes/auth/mod.rs @@ -1,6 +1,11 @@ +mod authorised; use anyhow::Context; use api_core::auth::provider::OauthProvider; -use axum::{extract::{Query, State}, http::{HeaderMap, header::SET_COOKIE}, response::{IntoResponse, Redirect}}; +use axum::{ + extract::{Query, State}, + http::{HeaderMap, header::SET_COOKIE}, + response::{IntoResponse, Redirect}, +}; use serde::Deserialize; use utoipa::{IntoParams, OpenApi}; use utoipa_axum::router::OpenApiRouter; @@ -50,7 +55,8 @@ pub fn router(store: AppState) -> OpenApiRouter<AppState> { )] pub async fn auth( Query(params): Query<OauthParams>, - State(state): State<AppState>) -> Result<impl IntoResponse, AppError> { + State(state): State<AppState>, +) -> Result<impl IntoResponse, AppError> { let client = state .auth_clients .get(¶ms.provider) |
