File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,7 @@ protected override void Load(ContainerBuilder builder)
19
19
20
20
builder . RegisterType < HttpContextAccessor > ( ) . As < IHttpContextAccessor > ( ) . SingleInstance ( ) ;
21
21
22
- builder . RegisterType < GlobalExceptionFilter > ( ) . AsSelf ( ) . InstancePerLifetimeScope ( ) ;
23
-
24
- builder . Register ( context =>
25
- {
26
- var configuration = context . Resolve < IConfiguration > ( ) ;
27
- var issuerOptions = configuration . GetSection ( "jwtIssuerOptions" ) . Get < JwtIssuerOptions > ( ) ;
28
-
29
- var key = context . Resolve < JwtSigningKey > ( ) ;
30
-
31
- issuerOptions . SigningCredentials = new SigningCredentials ( key , SecurityAlgorithms . HmacSha256Signature ) ;
32
-
33
- return new OptionsWrapper < JwtIssuerOptions > ( issuerOptions ) ;
34
- } ) . As < IOptions < JwtIssuerOptions > > ( ) . InstancePerLifetimeScope ( ) ;
22
+ builder . RegisterType < GlobalExceptionFilter > ( ) . AsSelf ( ) . InstancePerLifetimeScope ( ) ;
35
23
}
36
24
}
37
25
}
You can’t perform that action at this time.
0 commit comments