Activities of "Fabio.Zinesi"

It's possible to ask for the source code of ticket https://support.abp.io/QA/Questions/4147/DevExpress-Dashboard-Integration?

Can someone make a short brief?

Thankyou very much. I got it, also i would like to put this toast error inside the main page under footer with the help of <div> tag in section of HTML document. How can i do that?

Hey, I couldn't, can you plz provide me more information, the second link that you gave me, where i have to put all this code "CustomHTTPErrorHandler",i can't understand. If you can explain in which file i have to put the code, it will be easy for me.

let me have a try.

Answer

Hi Maliming, we have solved. Thank you for your reply.

Hi Anialy,

thank you very much for your support.

Unfortunaly, for this project I have to use Microsoft.Identity.Web and Microsoft.Graph.

Witch is the best way to add this authentication metod?

Best Regards.

Fabio.

In witch file i have to add the code?


using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Owl.reCAPTCHA; using System.Linq; using System.Threading.Tasks; using Volo.Abp.Account.ExternalProviders; using Volo.Abp.Account.Public.Web; using Volo.Abp.Account.Public.Web.Pages.Account; using Volo.Abp.Account.Security.Recaptcha; using Volo.Abp.DependencyInjection; using Volo.Abp.Security.Claims;

namespace Acme.Penstore.Pages.Account { [ExposeServices(typeof(LoginModel))] [Dependency(ReplaceServices = true)] public class AppLoginModel : LoginModel { public AppLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions identityOptions, IOptionsSnapshot reCaptchaOptions) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions) { }

    public override async Task OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null)
    {
        var token = await SignInManager.GetExternalLoginInfoAsync();
        var accessToken = token?.AuthenticationTokens?.FirstOrDefault(x => x.Name == "access_token");

        return await base.OnGetExternalLoginCallbackAsync(returnUrl, returnUrlHash, remoteError);
    }
}

}

If i do this:

private void ConfigureExternalProviders(ServiceConfigurationContext context)
{
    var configuration = context.Services.GetConfiguration();

    context.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
            .AddMicrosoftIdentityWebApp(configuration.GetSection("AzureAd"));
    context.Services.AddMicrosoftIdentityWebApiAuthentication(configuration, "AzureAd");


    context.Services.AddControllersWithViews();

    context.Services.AddAuthentication()

        
        .AddJwtBearer("Default", options =>
        {
            options.Authority = configuration["AuthServer:Authority"];
            options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);
            options.Audience = "DruidAI";
            options.Configuration = new OpenIdConnectConfiguration();
        })

.....

It works but do not login in ABP.

It works. Thank you very much

Showing 21 to 30 of 31 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 December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.