Skip to content

Commit 35a7726

Browse files
committed
add(event) accepts a pure dict now
1 parent 02d86ca commit 35a7726

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

msal/token_cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def find(self, credential_type, target=None, query=None):
4444
if is_subdict_of(query or {}, entry)
4545
and set(target) <= set(entry.get("target", []))]
4646

47-
def add(self, **event): # TODO: Changes to a normal dict
48-
# lambda client_id=None, scope=None, token_endpoint=None,
49-
# response=None, params=None, data=None, **kwargs:
50-
# None,
47+
def add(self, event):
48+
# type: (dict) -> None
49+
# event typically contains: client_id, scope, token_endpoint,
50+
# resposne, params, data, grant_type
5151
logging.debug("event=%s", json.dumps(event, indent=4))
5252
response = event.get("response", {})
5353
access_token = response.get("access_token", {})

0 commit comments

Comments
 (0)