Open Closed

Passwordless OPT Grant #8645


User avatar
0
Navneet@aol.com.au created
  • ABP Framework version: v8.2.3
  • UI Type: MVC
  • Database System: EF Core (PostgreSQL) /
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello Abp team,

Could you please guide me on how can I add a PasswordLess OTP grant type in the MVC application?

I have managed to create a checkbox "PasswordLess OTP" in OpenIddictApplication --> Create and Update UI by extending the entity, how to wire up the check box allow PasswordLess OTP grant type

Thanks, Navneet


3 Answer(s)
  • User Avatar
    0
    Navneet@aol.com.au created

    Hi team,

    I found a way to hook it up with UI by overriding the ApplicationAppService. However, I still need help to create "PasswordLess OTP" grant type

    [Authorize(AbpOpenIddictProPermissions.Application.Default)]
    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IApplicationAppService), typeof(ApplicationAppService), typeof(MyApplicationAppService))]
    public class MyApplicationAppService : ApplicationAppService
    {
        public MyApplicationAppService(IOpenIddictApplicationManager applicationManager, 
        IOpenIddictApplicationRepository applicationRepository) : base(applicationManager, applicationRepository)
        {
        }
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can see this https://abp.io/community/articles/how-to-add-a-custom-grant-type-in-openiddict.-6v0df94z

  • User Avatar
    0
    Navneet@aol.com.au created

    Thanks, Liangshiwei for sharing the link, it is a useful resource, but you need to go through it to understand.

    1. Just trying to understand, if the custom grant is to validate the token, how can I generate it in the first place?

    2. Also, how to make the login screen remove the password field if the user has opted for passwordless OTP, it needs to be dynamic to allow users with and without PasswordLess OTP

    Thanks, Navneet

Made with ❤️ on ABP v9.2.0-preview. Updated on January 15, 2025, 12:18