forked from fagongzi/manba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jwt.json
63 lines (63 loc) · 1.85 KB
/
jwt.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"secret": "jwt secret",
"method": "jwt signing method, [HS256|HS384|HS512]",
"tokenLookup": "token lookup, [header|query|cookie:Authorization]",
"authSchema": "jwt schema, [Bearer]",
"renewTokenHeaderName": "the header name for new token in the response header",
"csrfHeaderName": "the header name for CSRFToken",
"redis": {
"addr": "127.0.0.1:6379",
"maxActive": "max connections, int",
"maxIdle": "max idle connections, int",
"idleTimeout": "idle timeout seconds, int"
},
"actions": [
{
"method": "token_in_redis",
"params": {
"prefix": "the prefix of token in the redis"
}
},
{
"method": "token_and_csrf_in_redis",
"params": {
"prefix": "the prefix of token in the redis",
"csrf_white_method":"GET,OPTION",
"csrf_white_path":"/testinfo,/testdesc"
}
},
{
"method": "renew_by_redis",
"params": {
"prefix": "the prefix of token in the redis",
"ttl": "ttl seconds, int"
}
},
{
"method": "renew_by_raw",
"params": {
"ttl": "ttl seconds, required if the renew is true, int"
}
},
{
"method": "fetch_to_header",
"params": {
"prefix": "prefix added to field set to header",
"fields": [
"f1",
"f2"
]
}
},
{
"method": "fetch_to_cookie",
"params": {
"prefix": "prefix added to field set to cookie",
"fields": [
"f1",
"f2"
]
}
}
]
}