@@ -647,6 +647,7 @@ def _decide_broker(self, allow_broker, enable_pii_log):
647647 "allow_broker is deprecated. "
648648 "Please use PublicClientApplication(..., "
649649 "enable_broker_on_windows=True, "
650+ "enable_broker_on_linux=True, "
650651 "enable_broker_on_mac=...)" ,
651652 DeprecationWarning )
652653 opted_in_for_broker = (
@@ -1894,7 +1895,7 @@ def __init__(self, client_id, client_credential=None, **kwargs):
18941895
18951896 .. note::
18961897
1897- You may set enable_broker_on_windows and/or enable_broker_on_mac to True.
1898+ You may set enable_broker_on_windows and/or enable_broker_on_mac and/or enable_broker_on_linux to True.
18981899
18991900 **What is a broker, and why use it?**
19001901
@@ -1962,15 +1963,23 @@ def __init__(self, client_id, client_credential=None, **kwargs):
19621963 This parameter defaults to None, which means MSAL will not utilize a broker.
19631964
19641965 New in MSAL Python 1.31.0.
1966+
1967+ :param boolean enable_broker_on_linux:
1968+ This setting is only effective if your app is running on Linux.
1969+ This parameter defaults to None, which means MSAL will not utilize a broker.
1970+
1971+ New in MSAL Python 1.x.z.
19651972 """
19661973 if client_credential is not None :
19671974 raise ValueError ("Public Client should not possess credentials" )
19681975 # Using kwargs notation for now. We will switch to keyword-only arguments.
19691976 enable_broker_on_windows = kwargs .pop ("enable_broker_on_windows" , False )
19701977 enable_broker_on_mac = kwargs .pop ("enable_broker_on_mac" , False )
1978+ enable_broker_on_linux = kwargs .pop ("enable_broker_on_linux" , False )
19711979 self ._enable_broker = bool (
19721980 enable_broker_on_windows and sys .platform == "win32"
1973- or enable_broker_on_mac and sys .platform == "darwin" )
1981+ or enable_broker_on_mac and sys .platform == "darwin"
1982+ or enable_broker_on_linux and sys .platform == "linux" )
19741983 super (PublicClientApplication , self ).__init__ (
19751984 client_id , client_credential = None , ** kwargs )
19761985
0 commit comments