Ends in:
4 DAYS
6 HRS
50 MIN
2 SEC
Ends in:
4 D
6 H
50 M
2 S
Open Closed

ABP 5.0 - Impersonate User - "Back to my account" received 404 - File or directory not found #2302


User avatar
0
scottie.tang@cpy.com.hk created
  • ABP Framework version: v5.0.0
  • UI type: Blazor (SERVER)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello, recently we upgrade our project to 5.0 (from 4.X). Also we have enabled "Impersonate User" feature and it works perfectly locally (localhost). However, after we deploy to a staging environment, we found that the "Back to my account" hyperlink redirecting to a 404 page. Please help. Thanks.

The link is something like this ( note: this server is inaccessible from the internet) : https://mos-dev.cpyihk.com:8080/connect/authorize?client_id=iAE_BlazorServerTiered&redirect_uri=https%3A%2F%2Fmos-dev.cpyihk.com%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20role%20email%20phone%20iAE&response_mode=form_post&nonce=637755680047293886.MTdjY2QzMjMtOWM4Ni00M2QzLTg2MWUtOTNiODM1OTlhYmZiMDgzZmNlMDYtNDkwMy00OTVlLTkxYTctZjUwN2Y0MDQxNWE3&access_token=eyJhbGciOiJSUzI1NiIsImtpZCI6Ijk0RjUyNkFFQjM5MzNEQjBENjg0OUE2OERFMDczQzMzIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2Mzk5Njk1NjQsImV4cCI6MTY3MTUwNTU2NCwiaXNzIjoiaHR0cHM6Ly9tb3MtZGV2LmNweWloay5jb206ODA4MCIsImF1ZCI6ImlBRSIsImNsaWVudF9pZCI6ImlBRV9CbGF6b3JTZXJ2ZXJUaWVyZWQiLCJzdWIiOiIxNGU3ZTAyYS1jM2QwLWNkOTItNDg0MC0zYTAwN2NjMTU5NjAiLCJhdXRoX3RpbWUiOjE2Mzk5Njk1MzcsImlkcCI6ImxvY2FsIiwiaW1wZXJzb25hdG9yX3VzZXJpZCI6ImJhOWVmMTg4LTA5MDItZTQ0Yi01NmJhLTNhMDA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4JqrzxM0aaSl6uiXKxjDpfRVzdcIEwwNBfackrZsH4w4GbgZjsgRHhCpDOk4MCHFROzCC2qt70Z7OIU99VwTkT2ZloqK0nbamy4ZmaPLA4q3qKVPJ9ane7qfJ7VBoq-DtHCkdYN6sCO4IXaZEtDJZMxX33sPYY0ro8GKi_6i7FNyhFzLl9_D6GsYU&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=6.10.0.0


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

    hi

    Is it correct that redirect_uri does not have a port?

  • User Avatar
    0
    scottie.tang@cpy.com.hk created

    Our table defines two records for my client "iAE_BlazorServerTiered".

    ClientId RedirectUri 90B31767-C0CF-059C-44FA-3A007CC07879 https://localhost:44314/signin-oidc 90B31767-C0CF-059C-44FA-3A007CC07879 https://mos-dev.cpyihk.com/signin-oidc

  • User Avatar
    0
    scottie.tang@cpy.com.hk created

    Our Blazer Server does not have a port in Uri string ( we used https = 443 )

  • User Avatar
    0
    scottie.tang@cpy.com.hk created

    Hi maliming,

    I figured out the root cause. It is because we reached Maximum Query String. After increasing the Maximum Query String length, it works.

    Regards, Scottie

  • User Avatar
    0
    scottie.tang@cpy.com.hk created

    Thanks anyway.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35