- 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)
-
0
hi
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
-
0
Hi
I have shared log information over email please check.
-
0
hi
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();
-
0
ok
-
0
Thanks.
-
0
Sorry for late update, I have shared log information and screen shot as well over email please check.
-
0
Thanks. I will check it.
-
0
hi
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/
-
0
hi
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.
-
0
ok
-
0
shared log information and screen shot as well over email please check.
-
0
Any update ?
-
0
hi
Can you share a project to reproduce?
I will download and check it.
liming.ma@volosoft.com
-
0
Does your angular app use https? is the https certificate valid?
https://localhost:4200/ http://localhost:4200/
-
0
My 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 ?
-
0
hi
Maybe this is the HTTPS problem.
Does your angular app use HTTPS? is the HTTPS certificate valid?
https://localhost:4200/ http://localhost:4200/
-
0
Yes, 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.
-
0
Can you try to use HTTP in
the DEV and higher environments
to see if the error still exists? -
0
-
0
-
0
-
0
I have just forward to you one more time please check .
-
0
hi
Can you share an online URL to reproduce this?
I will test it online.
The log still shows that the request was canceled.
Thanks.
-
0
ok
-
0
Thanks, include a user and password.
liming.ma@volosoft.com