Skip to content

Commit 5052df1

Browse files
authored
Add oidc active to about response (#546)
1 parent 1ae8ef8 commit 5052df1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/handlers/http/about.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub async fn about() -> Json<serde_json::Value> {
4545
let store = CONFIG.storage().get_endpoint();
4646
let is_llm_active = &CONFIG.parseable.open_ai_key.is_some();
4747
let llm_provider = is_llm_active.then_some("OpenAI");
48+
let is_oidc_active = CONFIG.parseable.openid.is_some();
4849
let ui_version = option_env!("UI_VERSION").unwrap_or("development");
4950

5051
Json(json!({
@@ -56,6 +57,7 @@ pub async fn about() -> Json<serde_json::Value> {
5657
"latestVersion": latest_release,
5758
"llmActive": is_llm_active,
5859
"llmProvider": llm_provider,
60+
"oidcActive": is_oidc_active,
5961
"license": "AGPL-3.0-only",
6062
"mode": mode,
6163
"staging": staging,

0 commit comments

Comments
 (0)