TokenCache Class
This is considered as a base class containing minimal cache behavior.
Although it maintains tokens using unified schema across all MSAL libraries, this class does not serialize/persist them. See subclass SerializableTokenCache for details on serialization.
- Inheritance
-
builtins.objectTokenCache
Constructor
TokenCache()
Methods
add |
Handle a token obtaining event, and add tokens into cache. |
find | |
modify | |
remove_account | |
remove_at | |
remove_idt | |
remove_rt | |
update_rt |
add
Handle a token obtaining event, and add tokens into cache.
add(event, now=None)
Parameters
Name | Description |
---|---|
event
Required
|
|
now
|
default value: None
|
find
find(credential_type, target=None, query=None)
Parameters
Name | Description |
---|---|
credential_type
Required
|
|
target
|
default value: None
|
query
|
default value: None
|
modify
modify(credential_type, old_entry, new_key_value_pairs=None)
Parameters
Name | Description |
---|---|
credential_type
Required
|
|
old_entry
Required
|
|
new_key_value_pairs
|
default value: None
|
remove_account
remove_account(account_item)
Parameters
Name | Description |
---|---|
account_item
Required
|
|
remove_at
remove_at(at_item)
Parameters
Name | Description |
---|---|
at_item
Required
|
|
remove_idt
remove_idt(idt_item)
Parameters
Name | Description |
---|---|
idt_item
Required
|
|
remove_rt
remove_rt(rt_item)
Parameters
Name | Description |
---|---|
rt_item
Required
|
|
update_rt
update_rt(rt_item, new_rt)
Parameters
Name | Description |
---|---|
rt_item
Required
|
|
new_rt
Required
|
|
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по