Activities of "maliming"

hi

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAppUrlProvider))]
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.UI.Navigation.Urls;
namespace CompuCare.Providers;

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAppUrlProvider))]
public class CustomAppUrlProvider : IAppUrlProvider, ITransientDependency
{
    public bool IsRedirectAllowedUrl(string url)
    {
        return true;
    }
    
    public async Task<string> GetUrlAsync(string appName, string urlName)
    {
        return default;
    }
    
    public async Task<string> GetUrlOrNullAsync(string appName, string urlName)
    {
        return default;
    }
    
    public async Task<string> NormalizeUrlAsync(string url)
    {
        return default;
    }
}

hi

You can try to override the App.razor of Lepton theme.

Add <p>You are not authorized to access this resource.</p

We will fix this in next version.

@using Microsoft.Extensions.Options
@using Microsoft.Extensions.Localization
@using global::Localization.Resources.AbpUi
@using Volo.Abp.AspNetCore.Components.Web.LeptonTheme.Components.ApplicationLayout
@using Volo.Abp.AspNetCore.Components.Web.Theming.Routing
@inject IOptions<AbpRouterOptions> RouterOptions
@inject IStringLocalizer<AbpUiResource> UiLocalizer
<CascadingAuthenticationState>
    <Router AppAssembly="RouterOptions.Value.AppAssembly"
            AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(DefaultLayout)">
                <NotAuthorized>
                    @if (context.User?.Identity?.IsAuthenticated == false)
                    {
                        <RedirectToLogin/>
                    }
                    else
                    {
                        <p>You are not authorized to access this resource.</p
                    }
                </NotAuthorized>
            </AuthorizeRouteView>
        </Found>
        <NotFound>
            <LayoutView Layout="@typeof(DefaultLayout)">
                <ErrorView
                    Title="@UiLocalizer["404Message"]"
                    HttpStatusCode="404"
                    Message="@UiLocalizer["404MessageDetail"]"/>
            </LayoutView>
        </NotFound>
    </Router>
</CascadingAuthenticationState>

You can override the IsRedirectAllowedUrl method of IAppUrlProvider to return the true.

hi

Replace the js file from typeof(ManageModel).FullName

Configure<AbpBundlingOptions>(options =>
{
    options.ScriptBundles
        .Configure(typeof(ManageModel).FullName,
            configuration =>
            {
                configuration.AddFiles("/Pages/Account/Components/ProfileManagementGroup/Password/Default.js");
                
            });
});

Your question credits has been Refunded

hi

I see, I will open a fix PR.

hi

The ABP's identity module will exist in the API project.

https://auth0.com/blog/exploring-auth0-aspnet-core-authentication-sdk/

   Auth0
Web     API
     

"RedirectAllowedUrls": "https://*.ccalp.net,https://ccalp.net,https://app-compucare-api.azurewebsites.net, https://{{tenantName}}.ccalp.net/",

hi

Yes, the wildcard is {{tenantName}}

https://{{tenantName}}.ccalp.net/

hi

Thanks, I will check this case.

Showing 7261 to 7270 of 12924 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 11, 2026, 08:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.