Skip to content

Commit 8c5184b

Browse files
author
Tiago Brenck
committed
Fixed indentation and renamed variable to avoid conflict
1 parent c53aa36 commit 8c5184b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Microsoft.Identity.Web/Client/TokenCacheProviders/Sql/MSALAppSqlTokenCacheProviderExtension.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public static IServiceCollection AddSqlAppTokenCache(this IServiceCollection ser
5252
{
5353
// Uncomment the following lines to create the database. In production scenarios, the database
5454
// will most probably be already present.
55-
/*
55+
/*
5656
var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
5757
tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
5858
5959
var tokenCacheDbContextForCreation = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
6060
tokenCacheDbContextForCreation.Database.EnsureCreated();
61-
*/
61+
*/
6262
services.AddDataProtection();
6363

6464
services.AddDbContext<TokenCacheDbContext>(options =>
@@ -84,11 +84,13 @@ public static IServiceCollection AddSqlPerUserTokenCache(this IServiceCollection
8484
{
8585
// Uncomment the following lines to create the database. In production scenarios, the database
8686
// will most probably be already present.
87-
//var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
88-
//tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
87+
/*
88+
var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
89+
tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
8990
90-
//var tokenCacheDbContext = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
91-
//tokenCacheDbContext.Database.EnsureCreated();
91+
var tokenCacheDbContextForCreation = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
92+
tokenCacheDbContextForCreation.Database.EnsureCreated();
93+
*/
9294

9395
// To share protected payloads among apps, configure SetApplicationName in each app with the same value.
9496
// https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-2.2#setapplicationname

0 commit comments

Comments
 (0)