You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Do not merge until MSAL.NET 4.0 releases] Jmprieur/msal4.0 (#107)
* Updating the sample to MSAL.NET 4.0
Using the async serialization in the SessionTokenCacheProviders
* Updating README.md with a sample connection string
Updating README.md with a sample connection string, for localdb
* Improving the Dev experience with the SQL token cache:
- proposing a localdb connection string as a comment in the appsettings.json
- Now, uncommenting the comments still builds (and it's obvious now which), now builds
correctly (renamed tokenCacheDbContext into tokenCacheDbContextForCreation as it used
to conflict with the tokenCacheDbContext in the AddScoped block
1. If you do not have an existing database and tables needed for token caching, this sample can use [EF Core- code first](https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db?tabs=visual-studio) to create a database and tables for you. to do that, follow the steps below.
55
64
1. In the file `Microsoft.Identity.Web\Client\TokenCacheProviders\Sql\MSALAppSqlTokenCacheProviderExtension.cs`, uncomment the code under the **// Uncomment the following lines to create the database.**. This comment exists once in the **AddSqlAppTokenCache** and **AddSqlPerUserTokenCache** methods.
56
65
1. Run the solution again, when a user signs-in the very first time, the Entity Framework will create the database and tables `AppTokenCache` and `UserTokenCache` for app and user token caching respectively.
0 commit comments