I couldn't reproduce this problem on my local testing. It is hard to diagnose if it is about the oauth2 library or the oidc configuration with just the browser console log.
Since you get access token validation error, it may be related to the configuration skipIssuerCheck: true
.
Can you remove this configuration and see if it works?
With something like:
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Logout(LogoutInputModel model)
{
// build a model so the logged out page knows what to display
var vm = await BuildLoggedOutViewModelAsync(model.LogoutId);
...
return View("LoggedOut", vm);
}
LoggedOut.cshtml:
@model LoggedOutViewModel
<div class="page-header logged-out">
<small>You are now logged out</small>
...
@if (Model.SignOutIframeUrl != null)
{
<iframe width="0" height="0" class="signout" src="@Model.SignOutIframeUrl"></iframe>
}
</div>
Taken from https://stackoverflow.com/a/55312218/2594735
Also, this is not related to ABP. You can get better and faster results from asking to stackoverflow or the identityserver github issue tracker.
Can you give information about the AccessTokenLifetime and the refresh token AbsoluteRefreshTokenLifetime?
Also if it's on public, can you create/share a demo user for us that we can test on your environment?
Did you try running Redis on the other machine, also?
Please share your Module where you configure the bundling.
You may have forgotten to update your database connection string.
I am sorry, I still can't understand completly. Are you building a module with UI and is this about authorizing your modular UI?
but in this case we want to call a page with in our UI layer by authenticating the request
Can you give some code samples about what you are trying to achieve?
Could not found remote action for method: System.Threading.Tasks.Task`1[MOS.NotificationService.Samples.SampleDto] GetAsync() on the URL: https://localhost:44325/
Can you call the sample endpoint on gateway from the URL: https://localhost:44325/api/notification-service/sample ?
If so, try adding the [Route] attribute to GetAsync
method in SampleController:
[HttpGet]
public async Task<SampleDto> GetAsync()
{
return await _sampleAppService.GetAsync();
}
There can be a convention problem with other methods.
Do you use tiered application template? If so, you need to run redis. You can check the Getting Started docs to see the pre-requirements based on your application template choice.
This error seems to be based on the server you are hosting. Even if you solve the problem in your localhost, you'll need to configure maxAllowedContentLength
on the server you are hosting the application.
You can configure the Kestrel in Program.cs
like:
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(opt => opt.Limits.MaxRequestBodySize = long.MaxValue); // Add this line
builder.Host
.AddAppSettingsSecretsJson()
.UseAutofac()
.UseSerilog();
await builder.AddApplicationAsync<BServerBlazorModule>();
var app = builder.Build();
Also if you are running on IIS, update Web.config with:
<configuration>
<system.web>
<httpRuntime maxRequestLength="2147483647" />
</system.web>
</configuration>
Entered numbers are in bytes, configure as you desire.
You can also check HTTP Error 413.1 - Request Entity Too Large - How to fix.