feat(openapi): show explicitly path requiring bearerAuth

This commit is contained in:
Edouard Vanbelle
2026-05-27 12:43:07 +02:00
parent de1645b6c3
commit dfb21b746d
15 changed files with 124 additions and 5 deletions
+6 -3
View File
@@ -19,7 +19,6 @@ use crate::interfaces::api::cookie_auth;
use crate::interfaces::errors::AppError;
use crate::interfaces::middleware::auth::CurrentUserId;
use serde::Deserialize;
use utoipa::ToSchema;
/// Public auth routes — no authentication required.
pub fn auth_public_routes() -> Router<Arc<AppState>> {
@@ -667,7 +666,9 @@ pub async fn get_system_status(
),
tag = "auth"
)]
pub async fn oidc_providers(State(state): State<Arc<AppState>>) -> Result<impl IntoResponse, AppError> {
pub async fn oidc_providers(
State(state): State<Arc<AppState>>,
) -> Result<impl IntoResponse, AppError> {
let auth_service = state
.auth_service
.as_ref()
@@ -708,7 +709,9 @@ pub async fn oidc_providers(State(state): State<Arc<AppState>>) -> Result<impl I
),
tag = "auth"
)]
pub async fn oidc_authorize(State(state): State<Arc<AppState>>) -> Result<impl IntoResponse, AppError> {
pub async fn oidc_authorize(
State(state): State<Arc<AppState>>,
) -> Result<impl IntoResponse, AppError> {
let auth_service = state
.auth_service
.as_ref()