Gateway Web auth error: https://mos-st-gateway-web/swagger/index.html After auth: Show
I am assuming it is AccountService since web-gateway swagger just shows the microservice swagger endpoints it redirects at API definitions.
The error indicates that the client is trying to reach the issuer at mos-st-authserver:443
however it should use http instead of https inside the internal network.
Does this occur on web-gateway, AccountService only? Can you try other microservices over the web-gateway? Can you also try directly the microservice swagger endpoint?
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.