File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
articles/active-directory/develop Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -592,6 +592,22 @@ namespace CommonCacheMsalV3
592
592
593
593
-- -
594
594
595
+ ## Plain text fallback mode
596
+
597
+ MSAL allows you to store unencrypted tokens in clear text . This is intended for use in development environments for debugging purposes only .
598
+ You can use the plain text fallback mode using the following code pattern .
599
+
600
+ ```csharp
601
+ storageProperties =
602
+ new StorageCreationPropertiesBuilder (
603
+ Config .CacheFileName + " .plaintext" ,
604
+ Config .CacheDir )
605
+ .WithUnprotectedFile ()
606
+ .Build ();
607
+
608
+ var cacheHelper = await MsalCacheHelper .CreateAsync (storageProperties ).ConfigureAwait (false );
609
+ ```
610
+
595
611
## Next steps
596
612
597
613
The following samples illustrate token cache serialization .
You can’t perform that action at this time.
0 commit comments