Skip to content

Commit 0fd5a13

Browse files
author
Eric Dahlvang
authored
use get_access_token in signed_session, to ensure the Authorization token in the session is not expired (#602)
1 parent 52409df commit 0fd5a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def signed_session(self, session: requests.Session = None) -> requests.Session:
105105
if not self.microsoft_app_id and not self.microsoft_app_password:
106106
session.headers.pop("Authorization", None)
107107

108-
elif not session.headers.get("Authorization"):
108+
else:
109109
auth_token = self.get_access_token()
110110
header = "{} {}".format("Bearer", auth_token)
111111
session.headers["Authorization"] = header

0 commit comments

Comments
 (0)