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:
365365 if empty_headers :
366366 raise ValueError (f"Missing required headers:{ empty_headers } " )
367367
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+
368371 our_version = self .adapter .headers .get ("EX-APP-VERSION" , "" )
369372 if headers ["EX-APP-VERSION" ] != our_version :
370373 raise ValueError (f"Invalid EX-APP-VERSION:{ headers ['EX-APP-VERSION' ]} <=> { our_version } " )
371374
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-
375375 app_secret = get_username_secret_from_headers (headers )[1 ]
376376 if app_secret != self .cfg .app_secret :
377377 raise ValueError (f"Invalid App secret:{ app_secret } != { self .cfg .app_secret } " )
You can’t perform that action at this time.
0 commit comments