diff options
| author | rtkay123 <dev@kanjala.com> | 2026-04-06 22:02:47 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-04-06 22:02:47 +0200 |
| commit | be2af8a5fe2e58953b4970e3fed970165fc4b4ca (patch) | |
| tree | 67dba5cc6ff099e5aff100ff0489579e1817de60 /crates | |
| parent | ee324d087ae51f7fa285c00f6ac69fb597003be9 (diff) | |
| download | sellershut-be2af8a5fe2e58953b4970e3fed970165fc4b4ca.tar.bz2 sellershut-be2af8a5fe2e58953b4970e3fed970165fc4b4ca.zip | |
ci: build
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) |
