hi
③ If you enter the correct user and password in tab 1 and log in, you will be able to log in. ④ If you enter the correct user and password in tab 2, you will get a 400 error.
I opened two tabs.
TabA => account/login TabB => account/login
If I sign in TabA. the TabB will redirect to home page
Can you share your step to get the 400 error?
Thanks.
hi
Can you share some screenshots and error logs?
Thanks.
hi
Can you share a template project to reproduce these two problems?
I will download and check it.
Thanks.
liming.ma@volosoft.com
hi
ABP Fremework doesn't support your case.
If you want to hide the permissions on the UI page. You can override the application service.
https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Application/Volo/Abp/PermissionManagement/PermissionAppService.cs#L0-L1
hi
Can you share the code and steps to reproduce the problem?
Thanks,
liming.ma@volosoft.com
Great
PreConfigure<OpenIddictServerBuilder> is global. And OpenId > Application is for each application/client.
hi
MyMainHeader.razor.cs
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Volo.Abp.AspNetCore.Components.Web;
using Volo.Abp.LeptonTheme.Management;
namespace Cns.Modules.Docusign.Blazor.Server.Host.Pages;
public partial class MyMainHeader
{
[Inject]
private IAbpUtilsService UtilsService { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.Placement == MenuPlacement.Top)
{
await UtilsService.AddClassToTagAsync("body", "lp-topmenu");
}
else
{
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
await UtilsService.AddClassToTagAsync("body", "lp-closed");
await UtilsService.RemoveClassFromTagAsync("body", "lp-opened-sidebar");
await UtilsService.RemoveClassFromTagAsync("body", "lp-body-fixed");
}
else
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-closed");
await UtilsService.AddClassToTagAsync("body", "lp-opened-sidebar");
await UtilsService.AddClassToTagAsync("body", "lp-body-fixed");
}
}
await InvokeAsync(StateHasChanged);
}
}
async Task MyToggleNavbarStatusAsync()
{
Menu ??= await MainMenuProvider.GetMenuAsync();
Menu.ToggleNavbarStatus();
if (Menu.Placement == MenuPlacement.Top)
{
await UtilsService.AddClassToTagAsync("body", "lp-topmenu");
}
else
{
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
await UtilsService.AddClassToTagAsync("body", "lp-closed");
await UtilsService.RemoveClassFromTagAsync("body", "lp-opened-sidebar");
await UtilsService.RemoveClassFromTagAsync("body", "lp-body-fixed");
}
else
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-closed");
await UtilsService.AddClassToTagAsync("body", "lp-opened-sidebar");
await UtilsService.AddClassToTagAsync("body", "lp-body-fixed");
}
}
}
protected virtual async Task OnNavBarMouseOverAsync()
{
//TODO: MOUSEOVER IS NOT PERFORMANT, WE SHOULD USE MOUSEENTER/MOUSELEAVE
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
if (await UtilsService.HasClassOnTagAsync("body", "lp-closed"))
{
await UtilsService.AddClassToTagAsync("body", "lp-extended");
}
}
}
protected virtual async Task OnNavbarMouseOutAsync()
{
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
if (await UtilsService.HasClassOnTagAsync("body", "lp-closed"))
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-extended");
}
}
}
protected virtual void ToggleToolbarNav()
{
IsToolbarNavShown = !IsToolbarNavShown;
}
protected virtual void ToggleSidebarNav()
{
IsSidebarNavShown = !IsSidebarNavShown;
}
}