Starts in:
1 DAY
12 HRS
56 MIN
43 SEC
Starts in:
1 D
12 H
56 M
43 S
Open Closed

Identity server cancel button not working as expected #2475


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:NA
  • Steps to reproduce the issue:"NA
  1. Run anuglar app
  2. Click "login" button
  3. Identity page displayed
  4. click "Cancel" button
  5. page redirected to "http://localhost:4200/?error=access_denied" while it should redirect to "http://localhost:4200" only
  6. how to fix this issue?

5 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    It is a default behaviour to inform the user about the process has been stopped and access to the resource has been denied. It is also same behaviour with all main idp as well.

    I don't think it is an issue to fix but you can change the url by updating cookie handler like:

    .AddCookie("Cookies", options => 
    {
       options.AccessDeniedPath = "/";
    })
    

    If it doesn't work for you, you can check with identityserver github issues or stackoverflow to get faster response since this is not related with ABP.

  • User Avatar
    0
    shobhit created

    Hello gterdem, Thanks but not sure where to find this. currently:

    1. On Login page
    2. Give user name and password
    3. Click on Cancel button

    Actual Result: Page is becoming blank and loading for long time Expected Result: It should erase the given user credentials or should redirect to angular landing page

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Tiered (MVC) or Identity Server Separated (Angular): yes

    Do you used separated identityserver project? Do you use Resource Owner Flow?

  • User Avatar
    0
    shobhit created

    Do you used separated identityserver project? Yes Do you use Resource Owner Flow? Not sure about his and never used it

  • User Avatar
    0
    bunyamin created

    Hello,

    This was fixed in v4.3. Could you upgrade and try again?

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