Activities of "shijo"

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... 
            }) 
 

Ok this one I mapped, Where should I add this code ?

var result = await httpContext.AuthenticateAsync("your_jwt_schema");
if (result.Succeeded && result.Principal != null)
{
    ctx.User = result.Principal;
}

your_jwt_schema

Hi, can you share a sample code ? Where should I call the AuthenticateAsync ?

In My API layer I have already one jwt authentication scheme is there, can I add multiple scheme? This is my existing

private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
    {
    context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
            .AddJwtBearer(options =>
            {
                options.Authority = configuration["AuthServer:Authority"];
                options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);
                options.Audience = "Test1";
            });
    }

hi

obtained token from External SSO Application

What kind of SSO application? Is the token a JWT token?

Yes JWT token

  • ABP Framework version: v7.3.0

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Auth Server Separated (Angular): yes

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

    1. Client Application/Mobile app getting authorized and obtained token from External SSO Application
    2. API call initiated with the tenant and generated token

    How to configure extra authentication to validate this external token in abp api application ? Here is the sample flow diagram.

Working now. Removed all existing cli and suite folders and reinstalled the suite with apikey. Thanks for your quick support.

hi

Try to uninstall and install the suite again.

  abp suite remove 
  abp suite install 
 

No Luck

hi

Can you try to install other global tools?
This seems to be a problem with the global tool. eg:

> dotnet tool install -g dotnetsay 
> dotnetsay 

After installing this abp command is working but same access denied in abp suite command.

hi

Can you try to run the abp suite command in another folder?

  • ABP Framework version: v7.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
    • abp suite command showing access denied after I updated the cli and suite to 7.3.0
  • Steps to reproduce the issue:" * uninstall current version cli and suite 7.0 * install the latest cli * update cli * run command any abp command * showing access denied * *

Thanks. Its working.

Showing 51 to 60 of 124 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 30, 2025, 06:33