Skip to content

Commit 3146b24

Browse files
joegithubjmprieur
authored andcommitted
Update MSALAppSqlTokenCacheProviderExtension.cs (#146)
Edit variable name for new TokenCacheDbContext under AddSqlPerUserTokenCache() to be consistent with AddSqlAppTokenCache example and also prevent variable name conflict with tokenCacheDbContext when un-commented.
1 parent 7a67374 commit 3146b24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public static IServiceCollection AddSqlPerUserTokenCache(this IServiceCollection
8787
//var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
8888
//tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
8989

90-
//var tokenCacheDbContext = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
91-
//tokenCacheDbContext.Database.EnsureCreated();
90+
//var tokenCacheDbContextForCreation = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
91+
//tokenCacheDbContextForCreation.Database.EnsureCreated();
9292

9393
services.AddDataProtection();
9494

@@ -109,4 +109,4 @@ public static IServiceCollection AddSqlPerUserTokenCache(this IServiceCollection
109109
return services;
110110
}
111111
}
112-
}
112+
}

0 commit comments

Comments
 (0)