Browse Source

add debug session

Paul 6 years ago
parent
commit
54d10e7a4b
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      middleware/auth/session_debug.go

+ 24
- 0
middleware/auth/session_debug.go View File

@@ -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
+}