File tree 2 files changed +7
-2
lines changed
src/DarkLoop.Azure.Functions.Authorize/Security
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4
4
<Authors >Arturo Martinez</Authors >
5
5
<Company >DarkLoop</Company >
6
6
<PackageId >DarkLoop.Azure.Functions.Authorize</PackageId >
7
- <IsPreview >true </IsPreview >
7
+ <IsPreview >false </IsPreview >
8
8
<AssemblyVersion >3.0.0.0</AssemblyVersion >
9
9
<Version >3.1.0</Version >
10
10
<FileVersion >$(Version).0</FileVersion >
Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ public FunctionsAuthenticationBuilder AddJwtBearer(Action<JwtBearerOptions> conf
42
42
if ( removeBuiltInConfig )
43
43
{
44
44
var descriptor = Services . FirstOrDefault ( s => s . ServiceType == typeof ( IConfigureOptions < JwtBearerOptions > ) ) ;
45
- Services . Remove ( descriptor ) ;
45
+ var instance = descriptor ? . ImplementationInstance as ConfigureNamedOptions < JwtBearerOptions > ;
46
+
47
+ if ( instance ? . Name == "Bearer" )
48
+ {
49
+ Services . Remove ( descriptor ) ;
50
+ }
46
51
}
47
52
48
53
this . Services
You can’t perform that action at this time.
0 commit comments