Starts in:
2 DAYS
15 HRS
18 MIN
3 SEC
Starts in:
2 D
15 H
18 M
3 S
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:"

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

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Yes. You should.

  • 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 ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

  • 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?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Yes, you can

  • 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,

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Because you set the route prefix to empty

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    Please create a new question. Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06