@@ -127,22 +127,7 @@ def _create_app(self, cls):
127
127
return app
128
128
129
129
130
- class PublicClientCredential (MsalCredential ):
131
- """Wraps an MSAL PublicClientApplication with the TokenCredential API"""
132
-
133
- @abc .abstractmethod
134
- def get_token (self , * scopes , ** kwargs ): # pylint:disable=unused-argument
135
- # type: (*str, **Any) -> AccessToken
136
- pass
137
-
138
- def _get_app (self ):
139
- # type: () -> msal.PublicClientApplication
140
- if not self ._msal_app :
141
- self ._msal_app = self ._create_app (msal .PublicClientApplication )
142
- return self ._msal_app
143
-
144
-
145
- class InteractiveCredential (PublicClientCredential ):
130
+ class InteractiveCredential (MsalCredential ):
146
131
def __init__ (self , ** kwargs ):
147
132
self ._disable_automatic_authentication = kwargs .pop ("disable_automatic_authentication" , False )
148
133
self ._auth_record = kwargs .pop ("authentication_record" , None ) # type: Optional[AuthenticationRecord]
@@ -246,3 +231,9 @@ def _acquire_token_silent(self, *scopes, **kwargs):
246
231
def _request_token (self , * scopes , ** kwargs ):
247
232
# type: (*str, **Any) -> dict
248
233
"""Request an access token via a non-silent MSAL token acquisition method, returning that method's result"""
234
+
235
+ def _get_app (self ):
236
+ # type: () -> msal.PublicClientApplication
237
+ if not self ._msal_app :
238
+ self ._msal_app = self ._create_app (msal .PublicClientApplication )
239
+ return self ._msal_app
0 commit comments