hi
This issue is highly escalated into our organization and we certainly need you to look into this matter and provide support to resolve it.
Can you ask other colleagues if they can reproduce the problem?
I have explained a lot of the content of the problem.
References: https://abp.io/support/questions/8267/Tenant-Id-and-Tenant-Name-Not-Set-in-Header-After-Dashboard-Redirect-SSO-OIDC?CurrentPage=2#answer-3a163ae6-c2bb-7256-cbd1-03ecdb09add8 https://abp.io/support/questions/8267/Tenant-Id-and-Tenant-Name-Not-Set-in-Header-After-Dashboard-Redirect-SSO-OIDC?CurrentPage=2#answer-3a163adf-89f4-6c29-5e28-87e18a775dd7
hi
Remote troubleshooting will take too much time, especially under poor network conditions. This can be avoided. Because your problem has nothing to do with your microservices project.
I can't do this directly without permission, and I don't think they will allow me to proceed with this approach.
The code you share will not contain any secrets. It's a simple Angular app and an auth server project with an external login provider.
You can create an open-source (app instead of app-pro
) template project and add your code.
ok, You can create a private GitHub repo and invite me as a contributor.
https://github.com/maliming
hi
This has nothing to do with microservice.
Only need two projects:
Angular tries to log in and get the token. That's all.
hi
I have got your project.
Can you share some steps to show the problem?
Or what code you don't understand? etc...
Then I will add a new code.
Thanks.
hi
You don't need the entire project, you can try copying part of the code in your project to the POC project to reproduce the problem, I will check the POC project , this is just the login code, it should be simple.
Thanks.
There are two oauth2 processes:
code
, and use the code
to exchange the access_token
.code
get access token from auth servercode
hi I have checked the latest har file
Can you try to set redirect_uri
as http://localhost:4200
at First auth2 login request?
Your angular doesn't start the oauth2 login process.
If you can share a project that reproduces your problem, this would be the fastest way to troubleshoot the problem.
The POC angular project
localhost:4200 ->
login ->
redirect - https://localhost:44333/Account/Login ((redirect url is http://localhost:4200)) ->
OpenIdConnect ->
auth0.com(redirect url is https://localhost:44333/api/oidc/ExternalLoginCallback) ->
signing at auth0 ->
https://localhost:44333/api/oidc/ExternalLoginCallback ->
http://localhost:4200/?code=UAbYI ->
angular success
Your angular project
localhost:4200 ->
login ->
redirect - https://localhost:44333/Account/Login (https://localhost:44333/api/oidc/ExternalLoginCallback) ->
OpenIdConnect ->
auth0.com(redirect url is https://localhost:44333/api/oidc/ExternalLoginCallback) ->
signing at auth0 ->
https://localhost:44333/api/oidc/ExternalLoginCallback(code=123123) ->
hi
Identity service logs
Please share a test access_token
Please set the log level as Debug and share full logs of Identity service logs
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();```
Identity service
project to see the current claims of the api/identity-service/user-account/GetPAuthWithPermission
call.hi
. However I am still seeing the issue with the weird column widths
Can you share a screenshot for that?
Thanks