Open Closed

After Logout application is redirecting to AuthServer UI Instead of Login UI #5971


User avatar
0
hiteshsahu created

Hi,

I am having issue when i logout to my application it is redirect to the Authserver (e.g https://localhost:44322), but it should be redirect to my custom login page (e.g http://localhost:4300/account/login)

I have already integrated the custom login page and my login is been performed from http://localhost:4300/account/login url

I have read the documentations and articles but found nothing related to this.

ABP Framework version: 7.0.1 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:"


12 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello hiteshsahu

    Can you please change PostLogoutRedirectUris from this table and you need to add in RedirectAllowedUrls of authServer appsettings.json file like below.

  • User Avatar
    0
    hiteshsahu created

    Hi Anjali

    I have updated the PostLogoutRedirectUris and also updated the appsettings.json of authServer still the issue is persist it is still redirected to authServer

    <br>

    <br> I have also notice that there is one checkbox after PostLogoutRedirectUris  which is not getting enabled after saving the configuration

    Find below snapshot for your reference.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello hiteshsahu,

    I am trying to reproduce the issue but unable to do so.

    Could you please provide steps to reproduce or can you share your application on support@abp.io with ticket number so that we can better assist you.

    Thanks, Anjali

  • User Avatar
    0
    hiteshsahu created

    Hello Anjali,

    I am simply want that after logout my application should redirect to the application login page instead of authserver login page

    Steps to reproduce :

    1.Enter credential and login into the application

    2.Set the PostLogoutRedirectUris Configuration

    Also want to know the use of the Enabled checkbox at the bottom of the screnshot.The checkbox reset to uncheck when i save the configuration

    3 . Logout to the Application

    After logout Application should Redirect to the Login page of my application(http://localhost:4300/account/login) shown in 1 step. But it is redirect to the AuthServer(https://localhost:44322/Account/Login) Login Page

    Do let me know if you required any further details

  • User Avatar
    0
    hiteshsahu created

    Any update on this

  • User Avatar
    0
    hiteshsahu created

    Any update on this

    ???

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    do you want to use ROPC flow? https://github.com/abpframework/abp/blob/dev/docs/en/UI/Angular/Account-Module.md

  • User Avatar
    0
    hiteshsahu created

    Hi,

    Yes we are using the Resource Owner Password Flow

    const oAuthConfig = { issuer: 'https://localhost:44322/', clientId: 'DesignSystem', scope: 'offline_access openid profile email phone AccountService IdentityService',
    requireHttps: true, };

  • User Avatar
    0
    hiteshsahu created

    Hi,

    Yes we are using the Resource Owner Password Flow

    const oAuthConfig = { issuer: 'https://localhost:44322/', clientId: 'DesignSystem', scope: 'offline_access openid profile email phone AccountService IdentityService',
    requireHttps: true, };

    Any update on this?

  • User Avatar
    0
    hiteshsahu created

    Hi,

    Yes we are using the Resource Owner Password Flow

    const oAuthConfig = {
    issuer: 'https://localhost:44322/',
    clientId: 'DesignSystem',
    scope:
    'offline_access openid profile email phone AccountService IdentityService',
    requireHttps: true,
    };

    Any update on this?

    ??

  • User Avatar
    0
    mahmut.gundogdu created

    Hi,

    Yes we are using the Resource Owner Password Flow

    const oAuthConfig = {
    issuer: 'https://localhost:44322/',
    clientId: 'DesignSystem',
    scope:
    'offline_access openid profile email phone AccountService IdentityService',
    requireHttps: true,
    };

    Any update on this?

    ??

    this problem fixed in rel-7.2.3 . here the PR. https://github.com/abpframework/abp/pull/16912

    When you update your app, the problam will fixed. I have tested in my local with seperated auth server. here the gif.

  • User Avatar
    0
    hiteshsahu created

    Hi mahmut gundogdu,

    Thank you for your reply ,issue has been resolved.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11