Skip to content

Commit 2a6e108

Browse files
committed
Fix build errors.
1 parent 2f2c990 commit 2a6e108

File tree

2 files changed

+2
-4
lines changed
  • src/WebApps
    • SnWebApplication.Api.InMem.TokenAuth
    • SnWebApplication.Api.Sql.SearchService.TokenAuth.Preview

2 files changed

+2
-4
lines changed

src/WebApps/SnWebApplication.Api.InMem.TokenAuth/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using SenseNet.ContentRepository.Security.ApiKeys;
1313
using SenseNet.Extensions.DependencyInjection;
1414
using SenseNet.Services.Core.Authentication;
15-
using SnWebApplication.Api.Sql.TokenAuth.TokenValidator;
1615

1716
namespace SnWebApplication.Api.InMem.TokenAuth
1817
{

src/WebApps/SnWebApplication.Api.Sql.SearchService.TokenAuth.Preview/Startup.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
using SenseNet.Search.Lucene29.Centralized.GrpcClient;
1919
using SenseNet.Security.Messaging.RabbitMQ;
2020
using SenseNet.Services.Core.Authentication;
21-
using SnWebApplication.Api.Sql.TokenAuth.TokenValidator;
2221

2322
namespace SnWebApplication.Api.Sql.SearchService.TokenAuth.Preview
2423
{
@@ -55,8 +54,8 @@ public void ConfigureServices(IServiceCollection services)
5554
ValidateIssuerSigningKey = false
5655
};
5756

58-
options.SecurityTokenValidators.Clear();
59-
options.SecurityTokenValidators.Add(new SenseNetJwtSecurityTokenHandler(
57+
options.TokenHandlers.Clear();
58+
options.TokenHandlers.Add(new SenseNetJwtSecurityTokenHandler(
6059
$"{authOptions.Authority}/api/auth/validate-token"));
6160
}
6261
else

0 commit comments

Comments
 (0)