Skip to content

Commit 7775140

Browse files
committed
chore: expose
1 parent 8e9997c commit 7775140

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rust/cubesql/cubesql/src/sql/auth_service.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::{any::Any, env, fmt::Debug, sync::Arc};
22

3-
use async_trait::async_trait;
4-
53
use crate::CubeError;
4+
use async_trait::async_trait;
5+
use serde_json::Value;
66

77
// We cannot use generic here. It's why there is this trait
88
// Any type will allow us to split (with downcast) auth context into HTTP (standalone) or Native
@@ -26,6 +26,14 @@ impl AuthContext for HttpAuthContext {
2626
fn as_any(&self) -> &dyn Any {
2727
self
2828
}
29+
30+
fn user(&self) -> Option<String> {
31+
None
32+
}
33+
34+
fn security_context(&self) -> Option<&Value> {
35+
None
36+
}
2937
}
3038

3139
#[derive(Debug)]

0 commit comments

Comments
 (0)