Open Closed

IdentityServer: Create jwt token based on user's claimsprincipal #393


User avatar
0
Jeremy created

Hi there, I have started a project with abp.io and i use identity server for authentication. I would like to implement SMS login for the project and i have read the article Implementing Passwordless Authentication in ASP.NET Core Identity which provides very detailed instruction. However , the demo uses cookie signin scheme and I want to use bearer token instead. Are there any instruction to achieve this ? Thanks for the help.


2 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    You can try custom the AbpResourceOwnerPasswordValidator.

    https://github.com/abpframework/abp/blob/dev/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AspNetIdentity/AbpResourceOwnerPasswordValidator.cs#L64

  • User Avatar
    0
    Jeremy created

    This is exactly what I needed. Thanks for the help.

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.0.0-preview. Updated on September 18, 2025, 07:10