File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -365,13 +365,13 @@ def sign_check(self, request: Request) -> None:
365
365
if empty_headers :
366
366
raise ValueError (f"Missing required headers:{ empty_headers } " )
367
367
368
+ if headers ["EX-APP-ID" ] != self .cfg .app_name :
369
+ raise ValueError (f"Invalid EX-APP-ID:{ headers ['EX-APP-ID' ]} != { self .cfg .app_name } " )
370
+
368
371
our_version = self .adapter .headers .get ("EX-APP-VERSION" , "" )
369
372
if headers ["EX-APP-VERSION" ] != our_version :
370
373
raise ValueError (f"Invalid EX-APP-VERSION:{ headers ['EX-APP-VERSION' ]} <=> { our_version } " )
371
374
372
- if headers ["EX-APP-ID" ] != self .cfg .app_name :
373
- raise ValueError (f"Invalid EX-APP-ID:{ headers ['EX-APP-ID' ]} != { self .cfg .app_name } " )
374
-
375
375
app_secret = get_username_secret_from_headers (headers )[1 ]
376
376
if app_secret != self .cfg .app_secret :
377
377
raise ValueError (f"Invalid App secret:{ app_secret } != { self .cfg .app_secret } " )
You can’t perform that action at this time.
0 commit comments