Activities of "saad.aldulaijan"

Hello saad.aldulaijan,

could you please check following links - https://support.abp.io/QA/Questions/446/How-do-I-customize-login-pages-for-Angular-when-using-new-Authorization-Work-Flow-in-version-31 https://support.abp.io/QA/Questions/2582/Replacement-of-Login-Page-in-angular-is-not-working--i-have-follow-the-replacement-documentation-after-replacement-still-the-page-is-redirect-to-Backend-login-page let me know if it helps you.

I have already read those, not suitable for my case.

Let me show you an example: Currently: System A: (api, angular) http://localhost:4200 System B: (api, angular) http://locallost:4300 AuthServer (razor pages only) https://localhost:44322

System A wants to login --> redirected to razor page on AuthServer. https://localhost:44322/account/login System B wants to login --> redirected to razor page on AuthServer. https://localhost:44322/account/login

To be: I want to replace those razor pages by angular to be as follows: Stystem A wants to login --> should be redirected to angular app http://angularapp:4400/account/login Stystem B wants to login --> should be redirected to angular app http://angularapp:4400/account/login

Workaround: When I try Resource Owner Password Flow, it does not work. it redirects to its own login page, like this: System A wants to login --> redirected to http://localhost:4200/account/login System B wants to login --> redirected to http://localhost:4300/account/login

Hope you got my point.

  • ABP Framework version: v7.3.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I want to achieve the following:

I have multiple apps connected to one AuthServer, this AuthServer has nothing customized at all.

I want to replace the default login/registration pages (razor pages) to be one angular app for all clients.

Is that possible? if it is, how can i do it?

Issue resolved by adding

"StringEncryption": { "DefaultPassPhrase": "RGglP1UMH8AtjP1G" }

to AuthServer appsettings.json

I found this error as well

I also added it to IdentityService.HttpApi.Host but still did not work,

I tried flushall redis.

Try adding it to the AdministrationService.Host please. SettingMagement is hosted by AdministrationService.

I did that already, it did not work

  • ABP Framework version: v7.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: AbpException: Setting value for 'Abp.Mailing.Smtp.Password' is null or empty!
  • Steps to reproduce the issue:"

I am using Microservices template, I am trying to send confirmation email to the user after registration from AuthServer:

appsettings.json

Commented nullable email sender:

Error:

Database:

hi

I am using Microservices template v7.0.1, should I upgrade ?

Can you test your code with the latest project template?

Hi, I tried the latest version, same issue

hi

I also tried to add on Auto Mapper Profile

Do not add this, The module will handle the mapper.

Is the ExtraProperties exists on database table?

Can you test your code with the latest project template?

If still not working please share the project. liming.ma@volosoft.com

Hi ,

I am using Microservices template v7.0.1, should I upgrade ?

The field exists on database

This is exactly what I want.

I also tried to add on Auto Mapper Profile

public class IdentityServiceApplicationAutoMapperProfile : Profile
{
    public IdentityServiceApplicationAutoMapperProfile()
    {
        CreateMap<OpenIddictApplication, ApplicationDto>().MapExtraProperties();     
    }
}

It throws an exception:

AutoMapper.AutoMapperConfigurationException: Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters

OpenIddictApplication -> ApplicationDto (Destination member list) Volo.Abp.OpenIddict.Applications.OpenIddictApplication -> Volo.Abp.OpenIddict.Applications.Dtos.ApplicationDto (Destination member list)

Unmapped properties: AllowPasswordFlow AllowClientCredentialsFlow AllowAuthorizationCodeFlow AllowRefreshTokenFlow AllowHybridFlow AllowImplicitFlow AllowLogoutEndpoint AllowDeviceEndpoint Scopes

Showing 1 to 10 of 21 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11