Activities of "JanneHarju"

No. My goal is to get verification link to work. Currently I need to add MVC settings to get it working even verification mail send is done via Angular front. In angular front there is (In your code)logic which check if responseType is code then use MVC and otherwise use Angular settings. I was guided to override that part of code to always use Angular settings. It seems to me to be little overkill. So maybe I just add those MVC settings for email verification which are mentioned eralier in this issue.

options.Applications["MVC"].Urls[AccountUrlNames.EmailConfirmation] =
	"account/email-confirmation";

Default value is MVC style link which is not working for Angular front. Initial problem was that there was no domain part in link. that was solved by adding:

options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];

So after all for me it seems that my initial fix to add those settings to MVC side is easiest way. Maybe not most correct way but it works. Replacing that much of code instead seems overkill. Is our setup somehow wrong or weird or why we have this problem? Or is it actually problem in your code and you will fix it on later versions? Is the problem with using angular and having separate Auth server? Does this combo make that problem?

About thre replacement mechanic. I found this guide but what should be key for PersonalSettingsEmailComponent? https://abp.io/docs/latest/framework/ui/angular/component-replacement#how-to-replace-a-component

Yep that works. thanks. I will now test how it works in our test environment.

Or if you can say what module contains it.

Where do I find this component? abp-personal-settings-verify-button I finally managed to try this solution and I don't find it anywhere.

So do you mean that I need to remove these parts from code an use Angular as static value here?

New page at new tab looks still just like any else page. And url is not auth server url. And when I click back to some else page from left navigation panel it goes there without any new tab opening. So is some auth server page integrated to angular page? If I look at generated html at F12 inspect view everything looks like angular page stuff with all those ng attributes and palceholders.

For me it looks like Angular.

{
    path: 'account',
    loadChildren: () => import('@volo/abp.ng.account/public').then(m => m.AccountPublicModule.forLazy()),
    canActivate: [authGuard],
  }

But for some reason it always open to new page when it is clicked. At menu provider there is this:

{
    id: eUserMenuItems.MyAccount,
    order: 100,
    textTemplate: {
      text: 'AbpAccount::MyAccount',
    },
    action: () => navigateToManageProfile(),
    visible: () => true
  }

navigateToManageProfile() values is from NAVIGATE_TO_MANAGE_PROFILE injection token which is not overrider by us. So it is as default value.

Now I have these configurations at ApiHostModule:

Configure<AppUrlOptions>(options =>
{
    options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];
    options.Applications["MVC"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation";
    options.Applications["Angular"].RootUrl = configuration["App:AngularUrl"];
    options.Applications["Angular"].Urls[AccountUrlNames.PasswordReset] = "account/reset-password";
    options.Applications["Angular"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation";
});

And these at AuthServer side.

Configure<AppUrlOptions>(options =>
{
    options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];
    options.RedirectAllowedUrls.AddRange(configuration["App:RedirectAllowedUrls"].Split(','));
});

After I added that MVC "account/email-confirmation", email configuration link started to work. Request is sent from application side so I assume that auth server configuration doesn't affect about link. So these configurations are working for us now, but do you still think there is something wrong with them? Because of cause I want to do how it should be done and at same time it should work properly.

Showing 1 to 10 of 47 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35