Skip to content

Commit

Permalink
revert from 1073 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaya authored Mar 26, 2024
1 parent 274d847 commit bd62113
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ public static AuthenticationBuilder AddClientCredentials(this AuthenticationBuil
}

configSection.Bind(options);

// The default interval is 5 minutes which caused a lot of traffic to the authority server.
// Users still have the possibility to overwrite this value in their services.
options.RefreshInterval = TimeSpan.FromHours(12);
});

builder.AddJwtBearer(authScheme, configureOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public void GivenAnAuthenticationBuilder_WhenConfigsArePresent_ThenOptionsAreSet

Assert.Equal("audience", jwtBearerOptions.Audience);
Assert.Equal("https://identity.local", jwtBearerOptions.Authority);
Assert.Equal(TimeSpan.FromHours(12), jwtBearerOptions.RefreshInterval);
}

[Fact]
Expand All @@ -43,7 +42,6 @@ public void GivenAnAuthenticationBuilder_WhenActionConfigsIsPresent_ThenOptionsA
{
option.Authority = "https://identity.local";
option.Audience = "audience";
option.RefreshInterval = TimeSpan.FromMinutes(45);
});

var sp = services.BuildServiceProvider();
Expand All @@ -52,7 +50,6 @@ public void GivenAnAuthenticationBuilder_WhenActionConfigsIsPresent_ThenOptionsA

Assert.Equal("audience", jwtBearerOptions.Audience);
Assert.Equal("https://identity.local", jwtBearerOptions.Authority);
Assert.Equal(TimeSpan.FromMinutes(45), jwtBearerOptions.RefreshInterval);
}

[Fact]
Expand Down

0 comments on commit bd62113

Please sign in to comment.