- 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)
-
0
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) { }
-
0
Hi,
You can see this https://abp.io/community/articles/how-to-add-a-custom-grant-type-in-openiddict.-6v0df94z
-
0
Thanks, Liangshiwei for sharing the link, it is a useful resource, but you need to go through it to understand.
Just trying to understand, if the custom grant is to validate the token, how can I generate it in the first place?
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