File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
SnWebApplication.Api.InMem.TokenAuth
SnWebApplication.Api.Sql.SearchService.TokenAuth.Preview Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1212using SenseNet . ContentRepository . Security . ApiKeys ;
1313using SenseNet . Extensions . DependencyInjection ;
1414using SenseNet . Services . Core . Authentication ;
15- using SnWebApplication . Api . Sql . TokenAuth . TokenValidator ;
1615
1716namespace SnWebApplication . Api . InMem . TokenAuth
1817{
Original file line number Diff line number Diff line change 1818using SenseNet . Search . Lucene29 . Centralized . GrpcClient ;
1919using SenseNet . Security . Messaging . RabbitMQ ;
2020using SenseNet . Services . Core . Authentication ;
21- using SnWebApplication . Api . Sql . TokenAuth . TokenValidator ;
2221
2322namespace 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
You can’t perform that action at this time.
0 commit comments