File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def __init__(
177
177
# when we would eventually want to add this feature to PCA in future.
178
178
exclude_scopes = None ,
179
179
http_cache = None ,
180
- enable_broker = None ,
180
+ allow_broker = None ,
181
181
):
182
182
"""Create an instance of application.
183
183
@@ -414,7 +414,7 @@ def __init__(
414
414
415
415
New in version 1.16.0.
416
416
417
- :param boolean enable_broker :
417
+ :param boolean allow_broker :
418
418
Brokers provide Single-Sign-On, device identification,
419
419
and application identification verification.
420
420
If this parameter is set to True,
@@ -501,9 +501,9 @@ def __init__(
501
501
raise
502
502
is_confidential_app = bool (
503
503
isinstance (self , ConfidentialClientApplication ) or self .client_credential )
504
- if is_confidential_app and enable_broker :
505
- raise ValueError ("enable_broker =True is only supported in PublicClientApplication" )
506
- self ._enable_broker = (enable_broker and not is_confidential_app
504
+ if is_confidential_app and allow_broker :
505
+ raise ValueError ("allow_broker =True is only supported in PublicClientApplication" )
506
+ self ._enable_broker = (allow_broker and not is_confidential_app
507
507
and sys .platform == "win32"
508
508
and not self .authority .is_adfs and not self .authority ._is_b2c )
509
509
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def main():
143
143
header = "Input authority (Note that MSA-PT apps would NOT use the /common authority)" ,
144
144
accept_nonempty_string = True ,
145
145
),
146
- enable_broker = _input_boolean ("Enable broker? (Azure CLI currently only supports @microsoft.com accounts when enabling broker)" ),
146
+ allow_broker = _input_boolean ("Allow broker? (Azure CLI currently only supports @microsoft.com accounts when enabling broker)" ),
147
147
)
148
148
if _input_boolean ("Enable MSAL Python's DEBUG log?" ):
149
149
logging .basicConfig (level = logging .DEBUG )
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def _build_app(cls,
155
155
authority = authority ,
156
156
azure_region = azure_region ,
157
157
http_client = http_client or MinimalHttpClient (),
158
- enable_broker = broker_available # This way, we reuse same test cases, by run them with and without broker
158
+ allow_broker = broker_available # This way, we reuse same test cases, by run them with and without broker
159
159
and not client_credential ,
160
160
)
161
161
You can’t perform that action at this time.
0 commit comments