File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/NetDevPack.Identity/Jwt Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 44using Microsoft . Extensions . Configuration ;
55using Microsoft . Extensions . DependencyInjection ;
66using Microsoft . IdentityModel . Tokens ;
7- using NetDevPack . Security . Jwt . AspNetCore ;
8- using NetDevPack . Security . Jwt . Core ;
7+ using NetDevPack . Security . Jwt . Core . Interfaces ;
98
109namespace NetDevPack . Identity . Jwt
1110{
1211 public static class Abstractions
1312 {
14- public static IServiceCollection AddJwtConfiguration ( this IServiceCollection services , IConfiguration configuration , string appJwtSettingsKey = "AppJwtSettings" )
13+ public static IJwksBuilder AddJwtConfiguration ( this IServiceCollection services , IConfiguration configuration , string appJwtSettingsKey = "AppJwtSettings" )
1514 {
1615 if ( services == null ) throw new ArgumentException ( nameof ( services ) ) ;
1716 if ( configuration == null ) throw new ArgumentException ( nameof ( configuration ) ) ;
@@ -40,10 +39,9 @@ public static IServiceCollection AddJwtConfiguration(this IServiceCollection ser
4039 } ;
4140 } ) ;
4241 services . AddDataProtection ( ) ;
43- services . AddJwksManager ( ) . UseJwtValidation ( ) ;
4442 }
4543
46- return services ;
44+ return services . AddJwksManager ( ) . UseJwtValidation ( ) ;
4745 }
4846
4947 private static void SymetricKeyConfiguration ( IServiceCollection services , AppJwtSettings appSettings )
You can’t perform that action at this time.
0 commit comments