Open Closed

identity server encoded url not considering tenant #2421


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

we are integrating identity server page in our custom mobile app. Challenge we are facing is identity server is not considering below parameter (please check last parameter)

%26__tenant%3Dschool

but if we are passing parameter as

&__tenant=school it is working fine i.e. tenant got selected.

https://devidentity.aztute.com/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_type%3Dcode%26client_id%3DEzpandCC_App%26state%3Dd1d5akhvaVhXamhscEZNSWR6Nm9Bbm1iUHhhU0RvSXlzaHJVZHVCX3p3NXc5%26redirect_uri%3Dhttps%253A%252F%252Fapp.aztute.com%26scope%3Dopenid%2520offline_access%2520EzpandCC%26code_challenge%3D4ian4FTZJyvrCs2MK1UTS1utsUtAzpZd-nkWK1bg0O8%26code_challenge_method%3DS256%26nonce%3Dd1d5akhvaVhXamhscEZNSWR6Nm9Bbm1iUHhhU0RvSXlzaHJVZHVCX3p3NXc5%26__tenant%3Dschool


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

    hi

    What's your angular URL? How to get such a login URL?

  • User Avatar
    0
    shobhit created

    issue solved we have to pass the tenantId not the tenant name.

    But i am facing different challenge now. My old tenant selection is cached in mobile browser or have cookies. Question is how i can remove the cooky/cached page.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    1. User clears the cookies by himself.
    2. You write code to delete cookies on some pages.

    https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/AbpMultiTenancyCookieHelper.cs#L29

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