Activities of "michael.sudnik"

I still have not figured out what is going on. I have tried implementing a custom AbpSignInManager and can see that the ExternalLoginSignInAsync method result has all properties set to false (Failed). The method is also not hitting the PreSignInCheck, which implies that it is failing in the UserManager.FindByLoginAsync(loginProvider, providerKey) method. After investigating what this does, it is suspicious that the user in the database does not have any logins associated with it. I am using MongoDB and am wondering if the logins are not being persisted to the database. Also - the IsExternal property is set to false, which does not seem right. I will keep investigating until someone else can offer any help. Thanks.

Maybe the problem is here and the AbpClaimTypes.Email is not available?

https://github.com/abpframework/abp/blob/de7d480af49b5292716a3d130c4602da202388c2/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs#L226

But, the "Register Email" page does seem to populate it ok.

  • ABP Framework version: 3.3.1
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

After enabling the Microsoft external provider for my organisation, the first time click the Microsoft button on the login page and register my email address, I am then logged into the system correctly.

However, after logging out and trying to log back in again using the Microsoft button, it asks me to register my email address again - which it should not be doing. Obviously, I am unable to register again as both my username and email address are already in the system (and clicking the "Already registered? Login" just takes me to the start again).

I think that the problem might be that my username for my organisation is actually different to my email address. Email format: joe.blogs@myorganisation.com Microsoft username format: jblogs@myorganisation.com

What I can see is that after registration, the system is incorrectly recording my username to actually be my email address (e.g. joe.blogs@myorganisation.com when it should probably be jblogs@myorganisation.com), which might be causing the problem.

Are you able to point me in the right direction to try and debug this problem? Are there any hooks in the code that would allow me to try and investigate this?

Hi, I recently did something similar and ended up referring to this example code https://github.com/EasyAbp/Abp.SettingUi

Is there an existing module or straight forward way to allow all of the built in email settings to be editable in the settings adminstration UI? Or do we need to build this ourselves? I was surprised that it isnt included in the default created application. Thanks.

Answer

Hi, thanks. Could you also point us in the right direction to make these properties accesible in the UI? We have found the information about overriding paged, but where can we find the original page templates? e.g. registration page, profile page and user management pages. Also, how do we update the relevant application services and DTOs to include these new properties when saving? Is there a nice example that illustrates this? I imagine this would be a fairly common scenario?

Showing 51 to 56 of 56 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19