t.me/xtekky
commited on
Commit
·
c7f00a9
1
Parent(s):
cfce83b
- ora/_jwt.py +2 -2
- testing/ora_test.py → ora_test.py +0 -0
ora/_jwt.py
CHANGED
@@ -62,14 +62,14 @@ spd4eADxTm2m0GR7bhVEIbYfc0aAzIoWDpVs4V3vmx+bdRbppFxV1aS/r0g=
|
|
62 |
header = {
|
63 |
'alg': 'RS256',
|
64 |
'typ': 'JWT',
|
65 |
-
'kid': '
|
66 |
}
|
67 |
|
68 |
payload = {
|
69 |
**json_data,
|
70 |
'iat': int(datetime.now().timestamp()),
|
71 |
'exp': int((datetime.now() + timedelta(minutes=10)).timestamp()),
|
72 |
-
'iss': 'https://
|
73 |
}
|
74 |
|
75 |
return jwt.encode(payload, private_key, algorithm='RS256', headers=header)
|
|
|
62 |
header = {
|
63 |
'alg': 'RS256',
|
64 |
'typ': 'JWT',
|
65 |
+
'kid': '1c8a5da7-527e-4bee-aa8d-aabda16c59ce'
|
66 |
}
|
67 |
|
68 |
payload = {
|
69 |
**json_data,
|
70 |
'iat': int(datetime.now().timestamp()),
|
71 |
'exp': int((datetime.now() + timedelta(minutes=10)).timestamp()),
|
72 |
+
'iss': 'https://rick.roll'
|
73 |
}
|
74 |
|
75 |
return jwt.encode(payload, private_key, algorithm='RS256', headers=header)
|
testing/ora_test.py → ora_test.py
RENAMED
File without changes
|