hi
https://github.com/abpframework/abp/issues/13633
hi
I will provide a solution soon. : )
Send an email to liming.ma@volosoft.com
hi
It will available when 6.0 is released.
hi
Can you try to add a custom certificate instead of a development certificate?
https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html#registering-a-development-certificate
https://docs.abp.io/en/abp/6.0/Modules/OpenIddict#abpopeniddictaspnetcoreoptions
is possible to double-check if the token is the problem?
How about the IAccessTokenProvider
?
@using Volo.Abp.AspNetCore.Components.Messages
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
@inherits ComponentBase
@implements IDisposable
@code {
[Inject]
protected BlazoriseUiMessageService UiMessageService { get; set; }
[Inject]
protected NavigationManager NavigationManager { get; set; }
[Inject]
protected IAccessTokenProvider AccessTokenProvider { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
UiMessageService.MessageReceived += OnMessageReceived;
}
private async void OnMessageReceived(object sender, UiMessageEventArgs e)
{
var authState = await AccessTokenProvider.RequestAccessToken();
if (authState.Status == AccessTokenResultStatus.RequiresRedirect)
{
NavigationManager.NavigateTo("/authentication/login");
}
}
public void Dispose()
{
if (UiMessageService != null)
{
UiMessageService.MessageReceived -= OnMessageReceived;
}
}
}
hi
Try add <RedirectToLoginWhenUnauthorized />
to MainFooterComponent.razor
@using Volo.Abp.AspNetCore.Components.Messages
@inherits ComponentBase
@implements IDisposable
@code {
[Inject]
protected BlazoriseUiMessageService UiMessageService { get; set; }
[Inject]
protected NavigationManager NavigationManager { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
UiMessageService.MessageReceived += OnMessageReceived;
}
private async void OnMessageReceived(object sender, UiMessageEventArgs e)
{
if (e.Message == "Unauthorized")
{
NavigationManager.NavigateTo("/authentication/login");
}
}
public void Dispose()
{
if (UiMessageService != null)
{
UiMessageService.MessageReceived -= OnMessageReceived;
}
}
}
hi
I will check this.