Skip to content

Commit 7321aa7

Browse files
committed
feat(auth): add LLM Observability OAuth scopes
Add llm_observability_read and llm_observability_write to the default OAuth scopes, and llm_observability_read to the read-only scope set.
1 parent b67353c commit 7321aa7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/auth/types.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub fn read_only_scopes() -> Vec<&'static str> {
6767
"incident_notification_settings_read",
6868
"incident_settings_read",
6969
"integrations_read",
70+
"llm_observability_read",
7071
"logs_read_archives",
7172
"logs_read_config",
7273
"logs_read_data",
@@ -139,6 +140,9 @@ pub fn default_scopes() -> Vec<&'static str> {
139140
// Integrations (Jira, ServiceNow, Slack, Webhooks)
140141
"integrations_read",
141142
"manage_integrations",
143+
// LLM Observability
144+
"llm_observability_read",
145+
"llm_observability_write",
142146
// Logs
143147
"logs_generate_metrics",
144148
"logs_modify_indexes",
@@ -241,7 +245,7 @@ mod tests {
241245
#[test]
242246
fn test_default_scopes() {
243247
let scopes = default_scopes();
244-
assert_eq!(scopes.len(), 70);
248+
assert_eq!(scopes.len(), 72);
245249
assert!(scopes.contains(&"dashboards_read"));
246250
assert!(scopes.contains(&"monitors_read"));
247251
assert!(scopes.contains(&"logs_read_data"));

0 commit comments

Comments
 (0)