@@ -58,7 +58,8 @@ class Identity: # pylint: disable=too-many-instance-attributes
5858 _service_principal_store_instance = None
5959
6060 def __init__ (self , authority , tenant_id = None , client_id = None , encrypt = False , use_msal_http_cache = True ,
61- enable_broker_on_windows = None , instance_discovery = None ):
61+ enable_broker_on_windows = None , enable_broker_on_wsl = None ,
62+ instance_discovery = None ):
6263 """
6364 :param authority: Authentication authority endpoint. For example,
6465 - AAD: https://login.microsoftonline.com
@@ -74,6 +75,7 @@ def __init__(self, authority, tenant_id=None, client_id=None, encrypt=False, use
7475 self ._encrypt = encrypt
7576 self ._use_msal_http_cache = use_msal_http_cache
7677 self ._enable_broker_on_windows = enable_broker_on_windows
78+ self ._enable_broker_on_wsl = enable_broker_on_wsl
7779 self ._instance_discovery = instance_discovery
7880
7981 # Build the authority in MSAL style
@@ -112,7 +114,10 @@ def _msal_app_kwargs(self):
112114 def _msal_public_app_kwargs (self ):
113115 """kwargs for creating PublicClientApplication."""
114116 # enable_broker_on_windows can only be used on PublicClientApplication.
115- return {** self ._msal_app_kwargs , "enable_broker_on_windows" : self ._enable_broker_on_windows }
117+ return {** self ._msal_app_kwargs ,
118+ "enable_broker_on_windows" : self ._enable_broker_on_windows ,
119+ "enable_broker_on_wsl" : self ._enable_broker_on_wsl
120+ }
116121
117122 @property
118123 def _msal_app (self ):
0 commit comments