* feat: add workspace-level service accounts (EE) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * sqlx * sqlx * chore: update ee-repo-ref Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
823 B
Rust
29 lines
823 B
Rust
#[cfg(feature = "private")]
|
|
#[allow(unused)]
|
|
pub use crate::users_ee::*;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
use crate::users::ImpersonateServiceAccountRequest;
|
|
#[cfg(not(feature = "private"))]
|
|
use http::StatusCode;
|
|
#[cfg(not(feature = "private"))]
|
|
use tower_cookies::Cookies;
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_api_auth::ApiAuthed;
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_common::DB;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn impersonate_service_account(
|
|
_db: DB,
|
|
_authed: ApiAuthed,
|
|
_cookies: Cookies,
|
|
_current_token: String,
|
|
_w_id: String,
|
|
_req: ImpersonateServiceAccountRequest,
|
|
) -> windmill_common::error::Result<(StatusCode, String)> {
|
|
Err(windmill_common::error::Error::BadRequest(
|
|
"Service accounts require Windmill Enterprise Edition".to_string(),
|
|
))
|
|
}
|