Skip to content

Commit 29cdf22

Browse files
author
Kalyan Krishna
authored
Merge pull request #96 from loveplov/master
Connection string fix
2 parents 26b4ce0 + 24ddad5 commit 29cdf22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static IServiceCollection AddSqlAppTokenCache(this IServiceCollection ser
5353
// Uncomment the following lines to create the database. In production scenarios, the database
5454
// will most probably be already present.
5555
//var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
56-
//tokenCacheDbContextBuilder.UseSqlServer(configuration.GetConnectionString("TokenCacheDbConnStr"));
56+
//tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
5757

5858
//var tokenCacheDbContext = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
5959
//tokenCacheDbContext.Database.EnsureCreated();
@@ -84,7 +84,7 @@ public static IServiceCollection AddSqlPerUserTokenCache(this IServiceCollection
8484
// Uncomment the following lines to create the database. In production scenarios, the database
8585
// will most probably be already present.
8686
//var tokenCacheDbContextBuilder = new DbContextOptionsBuilder<TokenCacheDbContext>();
87-
//tokenCacheDbContextBuilder.UseSqlServer(configuration.GetConnectionString("TokenCacheDbConnStr"));
87+
//tokenCacheDbContextBuilder.UseSqlServer(sqlTokenCacheOptions.SqlConnectionString);
8888

8989
//var tokenCacheDbContext = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options);
9090
//tokenCacheDbContext.Database.EnsureCreated();

0 commit comments

Comments
 (0)