Open Closed

Mvc Login Screen Language Parameter #6167


User avatar
0
alicaner created
  • ABP Framework version: v7.1.1
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

In the Angular project (port: 4200), we use Oidc security service to direct it to the Abp mvc login screen (port: 7600). We use openidict in the backend. However, when redirecting to the login page from the Angular project, the "culture%3Dtr%26ui-culture%3Dtr" parameters are set automatically. How can this parameter be set in the front end?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This parameter comes from your current language in the angular app.

  • User Avatar
    0
    alicaner created

    Can you give details about sending via Angular? Will we include additional parameters in all requests we send.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This is the angular code that attaches the culture parameters.

    https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/oauth/src/lib/strategies/auth-code-flow-strategy.ts#L41 https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/oauth/src/lib/tokens/auth-flow-strategy.ts#L7

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