简体   繁体   English

谁能帮我在 PHP 本机项目中应用 MFA 身份验证

[英]Can anyone help me to apply MFA auth in PHP native project

I have a native PHP project using SESSIONS for logging users in. Now the client needs to implement MFA within the project and require to request the confirmation code every 30 days of last verification.我有一个本地 PHP 项目,使用 SESSIONS 来登录用户。现在客户需要在项目中实现 MFA,并要求每 30 天最后一次验证请求一次确认码。 Please can anyone help me with a documentation or resource to learn how to implement MFA on native php project because i searched but there aren't a lot of resources demonstrate how to do this thing on native PHP app.请任何人帮助我提供文档或资源,以了解如何在本机 php 项目上实现 MFA,因为我进行了搜索,但没有很多资源演示如何在本机 PHP 应用程序上执行此操作。 thank you in advance先感谢您

You can use PHP library for Two Factor Authentication package: https://github.com/RobThree/TwoFactorAuth您可以使用PHP库进行两因素身份验证

This library can use Microsoft TFA authentication service on your mobile (works on Android and IOS).该库可以在您的手机上使用 Microsoft TFA 身份验证服务(适用于 Android 和 IOS)。 Session life control can be achieved by a custom cron job or PHP configuration session.gc_maxlifetime Session 寿命控制可以通过自定义 cron 作业或 PHP 配置session.gc_maxlifetime来实现

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM