(options)
| 60 | |
| 61 | |
| 62 | def load_persistent_cache(options): |
| 63 | # type: |
| 64 | # (TokenCachePersistenceOptions) -> msal_extensions.PersistedTokenCache |
| 65 | import msal_extensions |
| 66 | persistence = _get_persistence( |
| 67 | allow_unencrypted=options.allow_unencrypted_storage, |
| 68 | account_name="MSALCache", |
| 69 | cache_name=options.name, |
| 70 | cache_location=options.cache_location |
| 71 | ) |
| 72 | return msal_extensions.PersistedTokenCache(persistence) |
| 73 | |
| 74 | |
| 75 | def _get_persistence( |
no test coverage detected