Activities of "maliming"

hi

I will check this. Thanks

hi

This is just a sample project, you can change it according to your needs, we will upgrade it in the near future.

Thanks

I will fix this problem in the next version.

: )

Use WithDynamicOptions will automatically add UI. Settings => Account => External provider

How to configure O365 external provider.

You can search it in Google. I don't know O365.

hi


.AddOpenIdConnect("AzureOpenId", "Azure AD", options =>
{
    options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
    options.RequireHttpsMetadata = false;
    options.SaveTokens = true;
    options.GetClaimsFromUserInfoEndpoint = true;
    options.Scope.Add("email");
    options.ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
    options.CallbackPath = "/callback";
})

.WithDynamicOptions<OpenIdConnectOptions, OpenIdConnectHandler>(
    "AzureOpenId",
    options =>
    {
        options.WithProperty(x => x.Authority);
        options.WithProperty(x => x.ClientId);
        options.WithProperty(x => x.ClientSecret, isSecret: true);
    }
);

context.Services.Replace(ServiceDescriptor
.Scoped<AccountExternalProviderOptionsManager<OpenIdConnectOptions>,
    OpenIdAccountExternalProviderOptionsManager>());


using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.Extensions.Options;
using Volo.Abp.Account.ExternalProviders;
using Volo.Abp.Account.Public.Web.ExternalProviders;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Security.Encryption;

namespace MyCompanyName.MyProjectName.Web.OpenId;

public class OpenIdAccountExternalProviderOptionsManager : AccountExternalProviderOptionsManager<OpenIdConnectOptions>
{
    private readonly OpenIdConnectPostConfigureOptions _openIdConnectPostConfigureOptions;

    public OpenIdAccountExternalProviderOptionsManager(
        IOptionsFactory<OpenIdConnectOptions> factory,
        IAccountExternalProviderAppService accountExternalProviderAppService,
        IStringEncryptionService stringEncryptionService,
        ITenantConfigurationProvider tenantConfigurationProvider,
        IDataProtectionProvider dataProtection) :
        base(factory, accountExternalProviderAppService, stringEncryptionService, tenantConfigurationProvider)
    {
        _openIdConnectPostConfigureOptions = new OpenIdConnectPostConfigureOptions(dataProtection);
    }

    protected async override Task OverrideOptionsAsync(string name, OpenIdConnectOptions options)
    {
        await base.OverrideOptionsAsync(name, options);
        _openIdConnectPostConfigureOptions.PostConfigure(name, options);
    }
}

ok, I will check it asap.

Answer

C:\Users\your user name\.abp\suite\logs

hi

Can you share a sample project that includes the AddOpenIdConnect client secret with me?

liming.ma@volosoft.com

Showing 9501 to 9510 of 11519 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 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.