Starts in:
2 DAYS
1 HR
20 MIN
57 SEC
Starts in:
2 D
1 H
20 M
57 S
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.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06