hi
You can add a parameter on the request header. and inject the IHttpContextAccessor to try to get this parameter.
I think one AppService is enough.
hi
You can use responseType: 'code' in your angular app. If you try to log in on angular, you will be redirected to the MVC login page.
And then you can log in with the Auzre ad.
https://docs.abp.io/en/abp/latest/UI/Angular/Authorization#authorization-code-flow
hi
Im not sure, It will be best if you can share a simple project. : )
hi
Can you share a simple project? liming.ma@volosoft.com
hi
How can I map user which is authenticated by external sso and our admin api, we have to match the users with email and set currentuser for permission management.
Im not understand very well, You can add some related code in your simple project.
hi
Can you share a simple project? liming.ma@volosoft.com
I will download and check it.
hi
https://learn.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme?view=aspnetcore-7.0#use-multiple-authentication-schemes
hi
You can call this code on controllers or Authorize with a specific scheme in ASP.NET Core
https://learn.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme?view=aspnetcore-7.0
Yes, You can add multiple scheme
context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
options.Authority = configuration["AuthServer:Authority"];
options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);
options.Audience = "Test1";
}).AddJwtBearer("your_jwt_schema", options =>
{
options...
})