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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기