Open Closed

OpenId UI pages not loading after migrated from 5.3.2 to 7.2.2 and replaced Identity Server with Openiddict in Blazor WebAssembly of Microservice template #5185


User avatar
0
raju.thinnaluri@gmail.com created

Hi,

We implemented the Blazor WebAssembly app as a SaaS model in microservice template.

Applications Page:

Scopes Page:

And able load the all the services Swagger UI like Admin Service, SaaS Service but Web Gateway Swagger not loading

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.2.2
  • UI type: Blazor WebAssembly
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

36 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer
    • 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
        }
    );
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi

    Should we add same line for Public Web gateway as well?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Yes. You should.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    It's working for web gateway. but for Public web gateway mot working.

    in public web gateway app setting client id given as

    is it should be **PublicWebGateway_Swagger ** or WebGateway_Swagger ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    Thank you so much for your support. now both gateways working fine.

    so now can remove first 2 urls since added last 2 urls?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Yes, you can

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    Just to know asking, in sample application if create from abp suite the urls creating like first 2 urls then application and gateways working fine. but why in my application has been changed the urls?

    in sample application these are the urls,

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Because you set the route prefix to empty

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    If i remove the RoutPrefix, can i use first 2urls?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi

    Please create a new question. Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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 September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.