Activities of "dshapiro"

I no longer have the logs, but I can tell you they did not. It went through a dotnet restore process, then exited with no further output. Not sure if relevant, but this is on ABP v9.x

We have file logging disabled - we prefer db logging. The db logs don't include any mention of needing to login. We also tried launching with dotnet run and saw no messages about why the application was aborting.

"Serilog": {
    "Using": [ "Serilog.Sinks.MSSqlServer", "Serilog.Sinks.Console" ],
    "MinimumLevel": {
        "Default": "Information",
        "Override": {
            "Microsoft": "Warning",
            "Microsoft.EntityFrameworkCore": "Warning",
            "System": "Warning"
        }
    },
    "Enrich": [ "FromLogContext", "WithMachineName" ],
    "Properties": {
        "Application": "Elite Tenants Platform"
    },
    "WriteTo": [
        {
            "Name": "MSSqlServer",
            "Args": {
                "connectionString": "Default",
                "sinkOptionsSection": {
                    "tableName": "Logs",
                    "autoCreateSqlTable": true
                },
                "restrictedToMinimumLevel": "Warning",
                "columnOptionsSection": {
                    "additionalColumns": [
                        {
                            "ColumnName": "MachineName",
                            "DataType": "varchar",
                            "DataLength": 50
                        },
                        {
                            "ColumnName": "UserId",
                            "DataType": "uniqueidentifier",
                            "NonClusteredIndex": true
                        }
                    ]
                }
            }
        }
    ]
},

This should not be logged as "Information", this should be thrown as a critical error if it's going to abort execution.

My sys admin and I wasted approximately two hours trying to diagnose and troubleshoot why ABP applications on my PC would not run. They would get to a certain point in the startup and then abort execution. I checked db logs and event viewer and nothing was present. We tried uninstalling Windows Updates, registry hacks, etc... no luck. Until I finally had the idea to try to run some abp cli commands and see what happens... that's when I finally received the message that my ABP account was not logged in.

This really needs better handling. Rather than silently failing on launch, there should be a clear AbpSessionException or more appropriate name with clear message: "You must login to your ABP account to run this application".

Gotcha! Thanks for your help on this!

Thank you. The example you provided got me what I needed. I removed the tenancy check (since we're not using multi-tenancy in our application) and ended up with this revised version (below).

A couple things I need:

  1. The shared file and screenshot contain client-identifying information (namespaces in code, name in screenshot) and I ask you to please edit your post and remove those.
  2. Can you help me understand why this edit is necessary? Since this is an override, I would expect the base class to already handle this.
protected override async Task TrySetEmailAsync()
    {
        if (IsExternalLogin)
        {
            var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync();
            if (externalLoginInfo == null)
            {
                return;
            }

            if (!externalLoginInfo.Principal.Identities.Any())
            {
                return;
            }

            var identity = externalLoginInfo.Principal.Identities.First();
            var emailClaim = identity.FindFirst(AbpClaimTypes.Email) ?? identity.FindFirst(ClaimTypes.Email);
            var givenNameClaim = identity.FindFirst(AbpClaimTypes.Name) ?? identity.FindFirst(ClaimTypes.GivenName);
            var surnameClaim = identity.FindFirst(AbpClaimTypes.SurName) ?? identity.FindFirst(ClaimTypes.Surname);

            if (emailClaim == null)
            {
                return;
            }

            var userName = await UserManager.GetUserNameFromEmailAsync(emailClaim.Value);
            Input = new PostInput
            {
                EmailAddress = emailClaim.Value,
                FirstName = givenNameClaim?.Value ?? "",
                LastName = surnameClaim?.Value ?? "",
            };
        }
    }

The access token and claims are present, but I see you have commented out mappings (MapJsonKey) which aren't present in my code. Is that what I'm missing? I don't see it mentioned in the documentation.

Could not find details on what is the expected behaviour for ABP.IO out of the box.

We have setup Google as an external provider. In our Google Cloud we've created an OAuth Consent Screen service & client with available scopes:

/auth/userinfo.email /auth/userinfo.profile openid

During our testing of this feature, when we click the "Google" button on the registration/login screen, the user experiences:

  1. Redirect to Google consent screen
  2. After approval, redirect back to ABP application's registration page
  3. Name fields and email address are blank

Should these fields be pre-populated from the external provider or is this not implemented by ABP?

For authentication we should define a new OpenID application within ABP and configure Elsa Studio to authenticate via OIDC? Or perhaps there's a simpler way to accomplish this as Elsa Server is hosted within the ABP project, so should have direct access to the Identity provider.

Thanks, I did find this but I wasn't sure if it was completely compatible with my solution as I use the Angular frontend and a *.HttpApi.Host project instead of an MVC Web project. This article also doesn't cover how to expose Elsa Studio (other than to use docker which seems unnecessary for this) and to use ABP's users and permissions within Elsa Studio.

Showing 1 to 10 of 30 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.