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 @@ -580,6 +580,22 @@ namespace CommonCacheMsalV3
580
580
581
581
-- -
582
582
583
+ ## Plain text fallback mode
584
+
585
+ MSAL allows you to store unencrypted tokens in clear text . This is intended for use in development environments for debugging purposes only .
586
+ You can use the plain text fallback mode using the following code pattern .
587
+
588
+ ```csharp
589
+ storageProperties =
590
+ new StorageCreationPropertiesBuilder (
591
+ Config .CacheFileName + " .plaintext" ,
592
+ Config .CacheDir )
593
+ .WithUnprotectedFile ()
594
+ .Build ();
595
+
596
+ var cacheHelper = await MsalCacheHelper .CreateAsync (storageProperties ).ConfigureAwait (false );
597
+ ```
598
+
583
599
## Next steps
584
600
585
601
The following samples illustrate token cache serialization .
You can’t perform that action at this time.
0 commit comments