Open Closed

QueryParameter with text 'code' is wrongly cleared #9338


User avatar
0
dfzamora created

Hello, this issue is in the frontend side, the current configuration for oAuthConfig is responseType: 'code',

I have noticed that when the URL contains a query parameter with the word code it is automatically cleared, for example, if I have the variable test_code =1234 this is replaced by test_= Event if I have something like testcode=1234 the result is test=, I am not currently able to add a query parameter with the name that I would like to due to this issue

  1. Steps to reproduce the issue:
    1. Configure your oAuthConfig with responseTypeCode
    2. Open your app in the browser
    3. Write in the url ?test_code=1234

1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, it seems this is a problem with the library that we use on the Angular side. We use angular-oauth2-oidc library and it's caused because of this library. There is a similar issue asked in their repository before: https://github.com/manfredsteyer/angular-oauth2-oidc/issues/1465 (so there is nothing we can do in our side)

    You can try the solution described at https://github.com/manfredsteyer/angular-oauth2-oidc/issues/1465#issuecomment-2691620040 and see if it works for you.

    Regards.

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 v9.3.0-preview. Updated on June 13, 2025, 11:37