質問編集履歴
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -79,3 +79,7 @@
|
|
79
79
|
https://docs.authlib.org/en/latest/specs/rfc7519.html#authlib.jose.rfc7519.JWT.check_sensitive_data
|
80
80
|
|
81
81
|
上記サイトで確認しています。
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
また、JWTはauthlibを使用しています。
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,19 @@
|
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
+
Invalid Signature
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
### 該当のソースコード
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```view.py
|
36
|
+
|
25
|
-
ApiKey = 'xxx'
|
37
|
+
ApiKey = 'xxx'
|
26
38
|
|
27
39
|
ApiSercret = 'xxx'
|
28
40
|
|
@@ -48,9 +60,7 @@
|
|
48
60
|
|
49
61
|
}
|
50
62
|
|
51
|
-
|
63
|
+
|
52
|
-
|
53
|
-
#https://docs.authlib.org/en/latest/specs/rfc7519.html#authlib.jose.rfc7519.JWT.check_sensitive_data
|
54
64
|
|
55
65
|
token = jwt.encode(header,payload,ApiSercret,check='true')
|
56
66
|
|
@@ -60,28 +70,12 @@
|
|
60
70
|
|
61
71
|
|
62
72
|
|
63
|
-
### 該当のソースコード
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
```ここに言語名を入力
|
68
|
-
|
69
|
-
ソースコード
|
70
|
-
|
71
|
-
```
|
72
|
-
|
73
|
-
|
74
|
-
|
75
73
|
### 試したこと
|
76
74
|
|
77
75
|
|
78
76
|
|
79
|
-
|
77
|
+
jwtの作成方法にミスがあると思い、
|
80
78
|
|
79
|
+
https://docs.authlib.org/en/latest/specs/rfc7519.html#authlib.jose.rfc7519.JWT.check_sensitive_data
|
81
80
|
|
82
|
-
|
83
|
-
### 補足情報(FW/ツールのバージョンなど)
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
81
|
+
上記サイトで確認しています。
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,9 +22,9 @@
|
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
-
ApiKey = '
|
25
|
+
ApiKey = 'xxx'
|
26
26
|
|
27
|
-
ApiSercret = '
|
27
|
+
ApiSercret = 'xxx'
|
28
28
|
|
29
29
|
mail = request.POST['mail']
|
30
30
|
|