Activities of "maliming"

hi

Could you please share the code that reproduces the issue?

Thanks

hi

You can add a new IAbpClaimsPrincipalContributor and check results from GetExternalLoginInfoAsync.

Your roles claims will exist in externalLoginInfo.

using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Security.Claims;
using IdentityUser = Volo.Abp.Identity.IdentityUser;

namespace MyCompanyName.MyProjectName.Web;

public class MyClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
{
    protected SignInManager<IdentityUser> SignInManager { get; }

    public MyClaimsPrincipalContributor(SignInManager<IdentityUser> signInManager)
    {
        SignInManager = signInManager;
    }
    
    public async Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
    {
        var identity = context.ClaimsPrincipal.Identities.FirstOrDefault();
        if (identity == null)
        {
            return;
        }
        var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync();
        if (externalLoginInfo == null)
        {
            return;
        }

        var roles = externalLoginInfo.Principal.Claims
            .Where(c => c.Type == "roles")
            .Select(c => c.Value)
            .ToList();

        if (roles.IsNullOrEmpty())
        {
            return;
        }

        foreach (var role in roles)
        {
            identity.AddClaim(new Claim("MyRoles", role));
        }
    }
}

hi

The Register page in the Account Pro module.

You can download its source code.

Thanks.

hi

Our angular team will help you asap

Thanks.

Answer

No problem. Take your time.

Great

Thanks, I will check it asap.

Sure, if you get any problems, feel free to reach out anytime.

hi

I didn't receive. Can you send it by https://wetransfer.com/

Thanks.

: )

Showing 1391 to 1400 of 11557 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
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.