|
@@ -0,0 +1,24 @@
|
|
1
|
+package auth
|
|
2
|
+
|
|
3
|
+import (
|
|
4
|
+ "time"
|
|
5
|
+)
|
|
6
|
+
|
|
7
|
+type DebugSessionStore struct{}
|
|
8
|
+
|
|
9
|
+func NewDebugSessionStore(address string, password string) *DebugSessionStore {
|
|
10
|
+ return &DebugSessionStore{}
|
|
11
|
+}
|
|
12
|
+
|
|
13
|
+func (*DebugSessionStore) StoreJwtToken(key string, value string, timeout time.Duration) error {
|
|
14
|
+ return nil
|
|
15
|
+}
|
|
16
|
+
|
|
17
|
+func (*DebugSessionStore) IsExistsJwtToken(key string) bool {
|
|
18
|
+ return true
|
|
19
|
+}
|
|
20
|
+
|
|
21
|
+// DeleteJwtToken delete jwt token
|
|
22
|
+func (*DebugSessionStore) DeleteJwtToken(key string) bool {
|
|
23
|
+ return true
|
|
24
|
+}
|