Activities of "maliming"

你的步骤是? 我们的angular开发人员会检查它, 请使用英文 谢谢

hi

using System;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using OpenIddict.Abstractions;
using OpenIddict.Server;

namespace BankIdDemo;

public class BankIdOpenIddictServerHandler : IOpenIddictServerHandler<OpenIddictServerEvents.ProcessSignInContext>
{
    public static OpenIddictServerHandlerDescriptor Descriptor { get; }
        = OpenIddictServerHandlerDescriptor.CreateBuilder<OpenIddictServerEvents.ProcessSignInContext>()
            .UseSingletonHandler<BankIdOpenIddictServerHandler>()
            .SetOrder(100_000)
            .SetType(OpenIddictServerHandlerType.Custom)
            .Build();

    public async ValueTask HandleAsync(OpenIddictServerEvents.ProcessSignInContext context)
    {
        var httpContext = context.Transaction.GetHttpRequest()?.HttpContext;
        if (httpContext == null)
        {
            return;
        }

        if (context.EndpointType == OpenIddictServerEndpointType.Authorization && context.AuthorizationCodePrincipal != null)
        {
            var identity = await httpContext.AuthenticateAsync(IdentityConstants.ApplicationScheme);
            if (identity.Principal != null)
            {
                var bankIdClaim = identity.Principal.FindFirst("isbankidauthenticated");
                if (bankIdClaim != null)
                {
                    context.AuthorizationCodePrincipal?.AddClaim("isbankidauthenticated", bankIdClaim.Value);
                };
            };
        }

        if (context.EndpointType == OpenIddictServerEndpointType.Token)
        {
            if (context.AccessTokenPrincipal != null && context.IdentityTokenPrincipal != null)
            {
                var bankIdClaim = context.AccessTokenPrincipal .FindFirst("isbankidauthenticated");
                if (bankIdClaim != null)
                {
                    context.IdentityTokenPrincipal?.AddClaim("isbankidauthenticated", bankIdClaim.Value);
                }
            }
        }
    }
}

我的意思是: MVC, Blazor 还是 Angular?

hi

When I create a user on the XXXAuth side and access this user via XXXCore, the Sign Up option creates a user record in the local database, and the password field for this record is naturally left blank

You can change your new user password in Core websites.

https://corewebsite/Account/Manage

Is there any endpoint, definition, or parameter for obtaining a token via the API?

You should use the connect/token endpoint, this is recommended.


The custom grant type also uses connect/token endpoint, and it will work.

https://abp.io/community/articles/how-to-add-a-custom-grant-type-in-openiddict.-6v0df94z#gsc.tab=0

hi

Do we need to buy a Blazorise license?

We have an agreement between Volosoft and Megabit, according to which the Blazorise license is bundled with the ABP Platform’s commercial licenses. Therefore, our paid users do not need to purchase an additional Blazorise license.

How do I get the Blazorise license key and support from the Blazorise team?

Follow the steps below to get support from the Blazorise team and get your Blazorise license key:

  1. Sign up for a new account at https://blazorise.com/support/register with the same email address as your abp.io account. Leave the "License Key" entry blank. It must be the same email address as your email account on abp.io.
  2. Verify your email address by checking your email inbox. Check your spam box if you don't see an email in your inbox!
  3. Log in to the Blazorise support website at https://blazorise.com/support/login
  4. If you have an active ABP Commercial License, you will also have a Blazorise PRO license. You can get your Blazorise license key at https://blazorise.com/support/user/manage/license
  5. You need to generate a Product Token in https://blazorise.com/account/user/manage/license
  6. If you have any issues with using Blazorise, you can post your issue on the Blazorise support website https://blazorise.com/support

How to use the Product Token in your Blazor project.

Register your Product Token in ABP Blazor projects.

See https://blazorise.com/docs/usage/licensing/register-product-token for more info.

好点, 我会检查日志.

Thanks.

Ok, Thanks.

Great : )

Showing 361 to 370 of 11100 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 November 04, 2025, 06:41