Open Closed

remove IdentityServer #3367


User avatar
0
yasin.hallak.89@gmail.com created
  • ABP Framework version: v5.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi there ....

Exception message and stack trace: There is already an existing permission group with name: AbpIdentity

Volo.Abp.Authorization.Permissions.PermissionDefinitionContext.AddGroup(string name, ILocalizableString displayName, MultiTenancySides multiTenancySide) Volo.Abp.Identity.IdentityPermissionDefinitionProvider.Define(IPermissionDefinitionContext context) Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionGroupDefinitions() System.Lazy<T>.ViaFactory(LazyThreadSafetyMode mode) System.Lazy<T>.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor) System.Lazy<T>.CreateValue() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionDefinitions() System.Lazy<T>.ViaFactory(LazyThreadSafetyMode mode) System.Lazy<T>.CreateValue() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.get_PermissionDefinitions() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.GetOrNull(string name) Volo.Abp.Authorization.AbpAuthorizationPolicyProvider.GetPolicyAsync(string policyName) Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName) Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.IsGrantedAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.IsGrantedAsync(IAuthorizationService authorizationService, string policyName) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsInternalAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.CheckAnyOfPagePermissionsGranted(SettingManagementPageOptions settingManagementPageOptions, SettingPageCreationContext settingPageCreationContext) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.CheckAnyOfPagePermissionsGranted(SettingManagementPageOptions settingManagementPageOptions, SettingPageCreationContext settingPageCreationContext) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.ConfigureMenuAsync(MenuConfigurationContext context) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.ConfigureMenuAsync(MenuConfigurationContext context) Volo.Abp.UI.Navigation.MenuManager.GetInternalAsync(string name) Volo.Abp.UI.Navigation.MenuManager.GetInternalAsync(string name) Volo.Abp.UI.Navigation.MenuManager.GetAsync(string[] menuNames) Volo.Abp.UI.Navigation.MenuManager.GetAsync(string[] menuNames) Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Themes.Lepton.Components.MainMenu.MainMenuViewComponent.InvokeAsync() Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Themes.Lepton.Components.MainMenu.MainMenuViewComponent.InvokeAsync() Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeAsync(Type componentType, object arguments) Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeAsync(Type componentType, object arguments) dfhdJGWM2KJdDXIU2aK.lCr3DpW4Zr8qhRYeKd7.ExecuteAsync() dfhdJGWM2KJdDXIU2aK.lCr3DpW4Zr8qhRYeKd7.ExecuteAsync() Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments)


20 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    • Steps to reproduce the issue:"
  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    hi

    • Steps to reproduce the issue:"

    I want to remove IdentityServer ....

    I watch video for brother Anto Subash and follow all steps ...

    finaly gave me this error above

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share the video url?

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    Can you share the video url?

    https://www.youtube.com/watch?v=6By_lKDyTGg

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The video has an example. Did you check?

    https://github.com/antosubash/AuthChange

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    The video has an example. Did you check?

    https://github.com/antosubash/AuthChange

    i chekcd it but there is diffrences ... this project default abp but my project commercial abp ...

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you create a template project and add your custom code then share it? liming.ma@volosoft.com

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    Can you create a template project and add your custom code then share it? liming.ma@volosoft.com

    I created new project and remove identityServer it works well .. but in myProject does not work because when I Installed module "Volo.Account" ...it added in all projects and it causes conflict with another modules ... but when i installed in new project just added to newPorject.web proj ..

    can you contact me with zoom and see my code and what is problems

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please try to compare the code of the two projects first, mainly module dependencies.

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    hi

    Please try to compare the code of the two projects first, mainly module dependencies.

    I tried again removed IdentityServer without installed module "Volo.Account" .. it works well ...

    We do not need to add module Volo.Account in commercial project because causes conflict with module Volo.Account.Pro..

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    but in myProject does not work because when I Installed module "Volo.Account"

    Can you share the project that Installed the volo.account liming.ma@volosoft.com

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    hi

    Please try to compare the code of the two projects first, mainly module dependencies.

    I tried again removed IdentityServer without installed module "Volo.Account" .. it works well ...

    We do not need to add module Volo.Account in commercial project because causes conflict with module Volo.Account.Pro..

    I think IdentityServer does not removed becasue when I signIn and do Inspect in devTool it gave me

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    but in myProject does not work because when I Installed module "Volo.Account"

    Can you share the project that Installed the volo.account liming.ma@volosoft.com

    yes I can

    https://github.com/----

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    but in myProject does not work because when I Installed module "Volo.Account"

    Can you share the project that Installed the volo.account liming.ma@volosoft.com

    yes I can

    https://github.com/----

    can you exchange identityServer with default Identity and tell me please

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Don't public your code!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Share the code to liming.ma@volosoft.com

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    liming.ma@volosoft.com

    ok I made an invitation for you I am waiting you thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Update yasinTestWebModule.cs and yasinTest.Web.csproj

  • User Avatar
    0
    yasin.hallak.89@gmail.com created

    Update yasinTestWebModule.cs and yasinTest.Web.csproj

    it work well thanks ... but I still need to add RedirectAllowedUrls after remove identityServer !!! why ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The RedirectAllowedUrls is used by other services not only IDS.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00