- ABP Framework version: 8.0
- UI Type: Angular
- Database System: EF Core (PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
We have a requirement where, when a client clicks on our application logo (which is already configured within their application), they should be redirected directly to the IdP's login page instead of the ABP.IO login page. After authentication with the IdP, the user should be redirected to our dashboard.
Using below ABP.IO support ticket i am successfully able to run POC project. Note :- Tenant not set in POC project.
Error :- After integrating the same code into our existing project, we successfully authenticated with the IDP, added the user to the database, and were redirected to the dashboard. However, after a few seconds, the application automatically redirects to the logout page I have cross check log it's look like tenant not set that's why user not able to login.
For your refence please find below log

We need to set the tenant name and tenant ID headers for the dashboard redirect URL. How can we do this ?
110 Answer(s)
- 
    0hi After integrating the same code into our existing project, we successfully authenticated with the IDP, added the user to the database, and were redirected to the dashboard. However, after a few seconds, the application automatically redirects to the logout page Can you share full debug logs(Logs.txt) during this process? liming.ma@volosoft.com Thanks 
- 
    0Hi I have shared log information over email please check. 
- 
    0hi Please share the full logs. You can change the log level and share the logs.txt file after reproducing the problem. public class Program { public async static Task<int> Main(string[] args) { Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) .Enrich.FromLogContext() .WriteTo.Async(c => c.File("Logs/logs.txt")) .WriteTo.Async(c => c.Console()) .CreateLogger();
- 
    0ok 
- 
    0Thanks. 
- 
    0Sorry for late update, I have shared log information and screen shot as well over email please check. 
- 
    0Thanks. I will check it. 
- 
    0hi The backend error is System.OperationCanceledException: The operation was canceled.Which means the browser cancels the request. Does your angular app use https? is the https certificate valid? https://localhost:4200/ 
- 
    0hi The backend error is System.OperationCanceledException: The operation was canceled.Which means the browser cancels the request. Does your angular app use https? is the https certificate valid? https://localhost:4200/ This issue is occurring only in the local not present development environment. In Dev after redirect URL to dashboard in header missing Tenant-Id and Tenant-Name; let me try to reproduce same issue in local get back to you. 
- 
    0ok 
- 
    0shared log information and screen shot as well over email please check. 
- 
    0Any update ? 
- 
    0hi Can you share a project to reproduce? I will download and check it. liming.ma@volosoft.com 
- 
    0Does your angular app use https? is the https certificate valid? https://localhost:4200/ http://localhost:4200/ 
- 
    0My project is very large, and due to policy restrictions, it's not feasible to share the code. Can you setup a call we can connect ? 
- 
    0hi Maybe this is the HTTPS problem. Does your angular app use HTTPS? is the HTTPS certificate valid? https://localhost:4200/ http://localhost:4200/ 
- 
    0Yes, we have a valid HTTPS certificate. Locally, we run the application over HTTP, while in the DEV and higher environments, we use HTTPS only. I shared all the logs, which are from the local environment, which is why they show HTTP. 
- 
    0Can you try to use HTTP in the DEV and higher environmentsto see if the error still exists?
- 
    0
- 
    0
- 
    0
- 
    0I have just forward to you one more time please check . 
- 
    0hi Can you share an online URL to reproduce this? I will test it online. The log still shows that the request was canceled. Thanks. 
- 
    0ok 
- 
    0Thanks, include a user and password. liming.ma@volosoft.com 




 
                                