Open Closed

9.0.4 -> 9.2.3 upgrade #9707


User avatar
1
sghorakavi@cpat.com created
  • Steps to reproduce the issueTenant subdomain logout is not working. Tenant stays logged in always:

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

    Can you check your URLs?

    The URLs are a JSON string array.

    ["https://auth.cpat.com:44346/signout-callback-oidc", "http://cpattest.dev.approach.cpat.dev/signout-callback-oidc"]
    
    
    

  • User Avatar
    0
    sghorakavi@cpat.com created

    select PostLogoutRedirectUris from [dbo].[OpenIddictApplications] where ClientId = 'TMS_MVC_Web'

    output: https://dev.approach.cpat.dev/signout-callback-oidc https://cpattest.dev.approach.cpat.dev/signout-callback-oidc

    Should I put comma between two ?

  • User Avatar
    0
    sghorakavi@cpat.com created

    [maliming] said: Can you check your URLs?

    The URLs are a JSON string array.

    ["https://auth.cpat.com:44346/signout-callback-oidc", "http://cpattest.dev.approach.cpat.dev/signout-callback-oidc"] 
     
     
    

    Let me check rest of the code for this.I will send you update soon.

  • User Avatar
    0
    sghorakavi@cpat.com created

    [sghorakavi@cpat.com] said:

    [maliming] said: Can you check your URLs?

    The URLs are a JSON string array.

    ["https://auth.cpat.com:44346/signout-callback-oidc", "http://cpattest.dev.approach.cpat.dev/signout-callback-oidc"]  
      
      
    

    Let me check rest of the code for this.I will send you update soon.

    How did you see this data ? I want to duplicate to check this.

  • User Avatar
    0
    sghorakavi@cpat.com created

    [sghorakavi@cpat.com] said: select PostLogoutRedirectUris from [dbo].[OpenIddictApplications]
    where ClientId = 'TMS_MVC_Web'

    output: https://dev.approach.cpat.dev/signout-callback-oidc https://cpattest.dev.approach.cpat.dev/signout-callback-oidc

    Should I put comma between two ?

    Locally, if I update table to include above change, I am getting error:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The output should be a JSON array

    ["https://auth.cpat.com:44346/signout-callback-oidc", "http://cpattest.dev.approach.cpat.dev/signout-callback-oidc"]

  • User Avatar
    0
    sghorakavi@cpat.com created

    Updated deployed database that you can access via deployed web page to : update [dbo].[OpenIddictApplications] set PostLogoutRedirectUris = '"https://dev.approach.cpat.dev/signout-callback-oidc","https://cpattest.dev.approach.cpat.dev/signout-callback-oidc"' where ClientId = 'TMS_MVC_Web'

    Output of select PostLogoutRedirectUris from [dbo].[OpenIddictApplications] where ClientId = 'TMS_MVC_Web' is below. No port number in the deployed page below. "https://dev.approach.cpat.dev/signout-callback-oidc","https://cpattest.dev.approach.cpat.dev/signout-callback-oidc"

    I will try to run redis cache clean tomorrow and will send you logs.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The value of RedirectUris is start and endwith [" , ]"

    UPDATE [dbo].[OpenIddictApplications] 
    SET [RedirectUris] = N'["https://auth.cpat.com:44346/signout-callback-oidc", "http://cpattest.dev.approach.cpat.dev/signout-callback-oidc"]'
    WHERE [Id] = Your ID
    
  • User Avatar
    0
    sghorakavi@cpat.com created

    RedirectUrl has value https://dev.approach.cpat.dev/signin-oidc is this incorrect ? I can add a value for tenant as well.

  • User Avatar
    0
    sghorakavi@cpat.com created

    update [dbo].[OpenIddictApplications] set [RedirectUris]=N'["https://dev.approach.cpat.dev/signin-oidc","https://cpattest.dev.approach.cpat.dev/signin-oidc"]' where ClientId = 'TMS_MVC_Web'

    Done.

  • User Avatar
    0
    sghorakavi@cpat.com created

    updated both RedirectUris and PostLogoutRedirectUris columns in the table to include cpattest. Please check

    Output of select PostLogoutRedirectUris from [dbo].[OpenIddictApplications] where ClientId = 'TMS_MVC_Web' ["https://dev.approach.cpat.dev/signout-callback-oidc","https://cpattest.dev.approach.cpat.dev/signout-callback-oidc"]

    Output of select [RedirectUris] from [dbo].[OpenIddictApplications] where ClientId = 'TMS_MVC_Web' ["https://dev.approach.cpat.dev/signin-oidc","https://cpattest.dev.approach.cpat.dev/signin-oidc"]

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I still get the 400 error. Please share logs again.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    BTW, have you cleared the cache?

  • User Avatar
    0
    sghorakavi@cpat.com created

    I have not cleared redis cache in deployed page yet. I will send you update after clearing cache. Sending you logs now.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The current 400 error

    The end session request was rejected because the specified post_logout_redirect_uri was invalid: 
    http://dev.approach.cpat.dev/signout-callback-oidc
    

    Can you also add http website as well?

    Thanks.

  • User Avatar
    0
    sghorakavi@cpat.com created

    added : select PostLogoutRedirectUris from [dbo].[OpenIddictApplications] where ClientId = 'TMS_MVC_Web'

    ["https://dev.approach.cpat.dev/signout-callback-oidc","https://cpattest.dev.approach.cpat.dev/signout-callback-oidc","http://dev.approach.cpat.dev/signout-callback-oidc"]

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok,

    https://dev.approach.cpat.dev/ logout works.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What is the password of tenant admin?

    https://cpattest.dev.approach.cpat.dev/

  • User Avatar
    0
    sghorakavi@cpat.com created

    Sudha123#

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, it still has 400 error

    Please share the logs.

    Thanks.,

  • User Avatar
    0
    sghorakavi@cpat.com created

    sure

  • User Avatar
    0
    sghorakavi@cpat.com created

    [maliming] said: ok, it still has 400 error

    Please share the logs.

    Thanks.,

    Done, pls check your email. 8_18_1

  • User Avatar
    0
    sghorakavi@cpat.com created

    should i add http for cpattest as well ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes

    http://dev.approach.cpat.dev/signout-callback-oidc

    The end session request was rejected because the specified post_logout_redirect_uri was invalid: 
    
    http://dev.approach.cpat.dev/signout-callback-oidc
    
  • User Avatar
    0
    sghorakavi@cpat.com created

    [maliming] said: Yes

    http://dev.approach.cpat.dev/signout-callback-oidc

    The end session request was rejected because the specified post_logout_redirect_uri was invalid:  
     
    http://dev.approach.cpat.dev/signout-callback-oidc 
    

    Done

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 v10.1.0-preview. Updated on October 07, 2025, 05:59