Starts in:
1 DAY
5 HRS
32 MIN
34 SEC
Starts in:
1 D
5 H
32 M
34 S
Open Closed

Issue logging into Blazor WASM (only on Azure) after updating to 6.0 and migrating to opendict #3868


User avatar
0
Sturla created

Hi

We have been trying to update to version 6.0 from 5.3.4 and are having issues getting the login to work for Blazor WASM.

As stated here our CMS is in the IdentiyServer project.

We get a unhandled 400 error like this (only in Azure.. works locally)

We have a ExceptionSubscriber in the IdentiyServer project but we don´t get anything there.

We can log into our MVC public page, no problem.

I just saw the following error message in the console while the Blazor was loading up that could be the cause.

Refused to display in a frame because it se 'X-Frame-Option' to 'sameorigin' What do you think and how should we fix it?

  • ABP Framework version: v6.0.0
  • UI type: Blazor
  • DB provider: EF Core
  • Identity Server Separated: yes

3 Answer(s)
  • User Avatar
    0
    amansharma created

    The only error it is throwing is there is not strack trace just this message

    [ERR] Unhandled exception! System.Exception: Unhandled exception!

    We have also attached certificates

  • User Avatar
    0
    Sturla created

    Here we have some extra information in the logs.

    Could some CMS file be missing that is causing this error? Note that we have our CMS located in the IdentiService and not the public website.

    And btw we have this ExceptionSubscriber in the IdentiService that only catches this unhandled exception with no details at all.

        public class OurExceptionSubscriber : ExceptionSubscriber
        {
            private readonly ILogger<OurExceptionSubscriber > logger;
            public OurExceptionSubscriber (ILogger<OurExceptionSubscriber > logger)
            {
                this.logger = logger;
            }
    
            public async override Task HandleAsync(ExceptionNotificationContext context)
            {
                logger.LogException(context.Exception);
                logger.LogError(context.Exception.StackTrace);
                logger.LogError(context.Exception.Source);
                logger.LogException(context.Exception.InnerException);
            }
        }
    
  • User Avatar
    0
    amansharma created

    this is reproducable when you add more uri to redirect uri and post logout uri for blazor .

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