8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19778d commit 8baad85Copy full SHA for 8baad85
libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
@@ -34,9 +34,12 @@ def __init__(
34
self.microsoft_app_password = password
35
self.app = None
36
37
- if self.oauth_scope and not self.oauth_scope.endswith("/.default"):
38
- self.oauth_scope += "/.default"
39
- self.scopes = [self.oauth_scope]
+ # This check likely needs to be more nuanced than this. Assuming
+ # "/.default" precludes other valid suffixes
+ scope = self.oauth_scope
40
+ if oauth_scope and not scope.endswith("/.default"):
41
+ scope += "/.default"
42
+ self.scopes = [scope]
43
44
@staticmethod
45
def empty():
0 commit comments