Repository navigation
How to reuse an interactive session (CreateWithInteractiveLogin) #1228
|
I have a small C# console application that connects to SharePoint Online using CreateWithInteractiveLogin. Similar scripts (pnp powershell, graph poweshell) tend to store the credentials for some time and avoid promts at least within minutes or hours of a previous prompt. Is there a way to cache the credentials somehow so that they are reusable between uses of the console application? I suppose that there must be a way, either using a different method other than CreateWithInteractiveLogin, or by tweaking some of CreateWithInteractiveLogin's parameters. Thanks. Update AuthManager = PnP.Framework.AuthenticationManager.CreateWithInteractiveLogin( |
Replies: 1 comment
|
ok I managed to implement this. method call: token helper class: |
ok I managed to implement this.
method call:
token helper class: