File tree 7 files changed +9
-8
lines changed
botframework/connector/auth 7 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ botframework-connector==4.15.0
3
3
botbuilder-schema == 4.15.0
4
4
botframework-streaming == 4.15.0
5
5
requests == 2.27.1
6
- PyJWT == 1.5.3
6
+ PyJWT == 2.4.0
7
7
cryptography == 3.3.2
8
8
aiounittest == 1.3.0
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ botframework-connector==4.15.0
3
3
botbuilder-schema == 4.15.0
4
4
botbuilder-core == 4.15.0
5
5
requests == 2.27.1
6
- PyJWT == 1.5.3
6
+ PyJWT == 2.4.0
7
7
cryptography == 3.3.2
8
8
aiounittest == 1.3.0
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def is_token_from_emulator(auth_header: str) -> bool:
63
63
bearer_token = auth_header .split (" " )[1 ]
64
64
65
65
# Parse the Big Long String into an actual token.
66
- token = jwt .decode (bearer_token , verify = False )
66
+ token = jwt .decode (bearer_token , options = { "verify_signature" : False } )
67
67
if not token :
68
68
return False
69
69
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ async def get_identity(
68
68
raise error
69
69
70
70
def _has_allowed_issuer (self , jwt_token : str ) -> bool :
71
- decoded = jwt .decode (jwt_token , verify = False )
71
+ decoded = jwt .decode (jwt_token , options = { "verify_signature" : False } )
72
72
issuer = decoded .get ("iss" , None )
73
73
if issuer in self .validation_parameters .issuer :
74
74
return True
@@ -111,6 +111,7 @@ async def _validate_token(
111
111
metadata .public_key ,
112
112
leeway = self .validation_parameters .clock_tolerance ,
113
113
options = options ,
114
+ algorithms = ["RS256" ],
114
115
)
115
116
116
117
claims = ClaimsIdentity (decoded_payload , True )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def is_skill_token(auth_header: str) -> bool:
55
55
bearer_token = auth_header .split (" " )[1 ]
56
56
57
57
# Parse the Big Long String into an actual token.
58
- token = jwt .decode (bearer_token , verify = False )
58
+ token = jwt .decode (bearer_token , options = { "verify_signature" : False } )
59
59
return SkillValidation .is_skill_claim (token )
60
60
61
61
@staticmethod
Original file line number Diff line number Diff line change 1
1
msrest == 0.6.*
2
2
botbuilder-schema == 4.15.0
3
3
requests == 2.27.1
4
- PyJWT == 1.5.3
4
+ PyJWT == 2.4.0
5
5
cryptography == 3.3.2
6
6
msal == 1.*
Original file line number Diff line number Diff line change 8
8
VERSION = os .environ ["packageVersion" ] if "packageVersion" in os .environ else "4.15.0"
9
9
REQUIRES = [
10
10
"msrest==0.6.*" ,
11
- "requests>=2.23.0,<2.26" ,
12
- "PyJWT>=1.5.3,<2.0 .0" ,
11
+ # "requests>=2.23.0,<2.26",
12
+ "PyJWT>=2.4 .0" ,
13
13
"botbuilder-schema==4.15.0" ,
14
14
"msal==1.*" ,
15
15
]
You can’t perform that action at this time.
0 commit comments