Activities of "liangshiwei"

Because you set the route prefix to empty

Answer

Hi,

No, we don't such plan to implement it.

Yes, you can

Please use WebGateway_Swagger and add redirectUri for it. {publicWebGatewayRootUrl}/oauth2-redirect.html

Hi,

I think it may be related to the cache. Can you try to clear all the Redis caches?

Yes. You should.

Answer

Hi,

We added the Periodic Password Changes feature in 7.2

https://blog.abp.io/abp/ABP.IO-Platform-7.2-RC-Has-Been-Published

If the new password matches any of the last 3 passwords, we want to display a warning message indicating that the entered password is not allowed

You can override the ChangePasswordModel to store the recently modified password to cache&database and check it.

  • Update client application to add redirectUri

  • Or update data seed code
await CreateApplicationAsync(
    name: swaggerClientId!,
    type: OpenIddictConstants.ClientTypes.Public,
    consentType: OpenIddictConstants.ConsentTypes.Implicit,
    displayName: "Swagger Client",
    secret: null,
    grantTypes: new List<string>
    {
        OpenIddictConstants.GrantTypes.AuthorizationCode,
    },
    scopes: commonScopes.Union(scopes).ToList(),
    redirectUris: new List<string> {
        $"{webGatewaySwaggerRootUrl}/oauth2-redirect.html", // This line
        $"{webGatewaySwaggerRootUrl}/swagger/oauth2-redirect.html", // WebGateway redirect uri
        $"{publicWebGatewayRootUrl}/swagger/oauth2-redirect.html", // PublicWebGateway redirect uri
        $"{accountServiceRootUrl}/swagger/oauth2-redirect.html", // AccountService redirect uri
        $"{identityServiceRootUrl}/swagger/oauth2-redirect.html", // IdentityService redirect uri
        $"{administrationServiceRootUrl}/swagger/oauth2-redirect.html", // AdministrationService redirect uri
        $"{saasServiceRootUrl}/swagger/oauth2-redirect.html", // SaasService redirect uri
        $"{productServiceRootUrl}/swagger/oauth2-redirect.html", // ProductService redirect uri
        $"{coreServiceRootUrl}/swagger/oauth2-redirect.html", // CoreService redirect uri
        $"{itServiceRootUrl}/swagger/oauth2-redirect.html", // ITService redirect uri
        $"{messagingServiceRootUrl}/swagger/oauth2-redirect.html", // MessagingService redirect uri
        $"{reportServiceRootUrl}/swagger/oauth2-redirect.html", // ReportService redirect uri
        $"{documentServiceRootUrl}/swagger/oauth2-redirect.html", // DocumentService redirect uri
        $"{workServiceRootUrl}/swagger/oauth2-redirect.html", // WorkService redirect uri
    }
);

Hi,

Unfortunately, I don't know what's happened, can you make a GIF or record a video? Thanks.

if you want i will share my latest code with you what i have currently.

Yes, please also share it.

Hi,

You can try :

app.UseAuthentication(); // Add under `UseAuthentication`
app.Use(async (httpContext, next) =>
{
    if (!httpContext.Request.Path.ToString().Contains("account/login"))
    {
        if (httpContext.User.Identity is not { IsAuthenticated: true })
        {
            httpContext.Response.Redirect("/account/login");
            return;
        }
    }
    

    await next();
});
Showing 3771 to 3780 of 6693 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.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.