简体   繁体   English

无密码 SMS 身份验证 - 令牌过期和安全

[英]Passwordless SMS authentification - Token expiration & Security

I am looking to implement a passwordless solution for a mobile app currently in production.我希望为目前正在生产中的移动应用程序实施无密码解决方案。 The aim is to make the login process smoother for the users by removing the use of a password.目的是通过取消使用密码使用户的登录过程更加顺畅。 Since the app is mobile only and that the phone number of the users is already used as a username I feel like a solution using Twilio to generate an OTP (one-time-password) to login is a good alternative.由于该应用程序仅适用于移动设备,并且用户的电话号码已用作用户名,我觉得使用 Twilio 生成 OTP(一次性密码)登录的解决方案是一个不错的选择。

N.netheless today when a user logs in, the authentication token has no expiration date (he stay logged in forever). N.尽管如此,今天当用户登录时,身份验证令牌没有到期日期(他永远保持登录状态)。 I would like to know if using an OTP to generate such unlimited (or very long lasting) auth token would be considered as a security issue.我想知道使用 OTP 生成这种无限制(或非常持久)的身份验证令牌是否会被视为安全问题。 Is there some best practice to take into consideration like refresh tokens or other...是否有一些最佳实践需要考虑,例如刷新令牌或其他...

To be clear my question is:要明确我的问题是:

Is using OTP with SMS considered as a good practice to stay always logged in to an app?将 OTP 与 SMS 一起使用是否被视为保持始终登录到应用程序的良好做法? And do you see any flaw in my reasoning?你认为我的推理有什么缺陷吗?

Thank you !谢谢 !

Look https://bere.al/en , Bereal use this system to auth users.看看https://bere.al/en ,Bereal 使用这个系统来授权用户。 We have probleme when you change/lose you sim card.当您更换/丢失 SIM 卡时,我们会遇到问题。 But I don't see any security problem.但我没有看到任何安全问题。

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

相关问题 延长 Firebase 短信有效期 - Extend Firebase SMS Expiration Time Firebase:使用 Firebase 令牌进行的 Facebook 身份验证不起作用 - Firebase : Facebook authentification with Firebase token not working Firebase Authentification expiresIn(令牌过期所需的时间) - Firebase Authentification expiresIn (time needed for token to expire ) 增加aws session token过期时间 - Increase aws session token expiration time FastAPI:使用 firebase 令牌的安全性 - FastAPI: security with firebase token 请求中包含的安全令牌已过期 - The security token included in the request is expired 使用 spring 安全性验证 Azure AD 访问令牌 - Validate Azure AD access token with spring security AWS S3 签名 url 在尝试检索 object 时不断抛出令牌过期 - AWS S3 signed url keep throwing token expiration while trying to retrieve object 是否可以通过 Firebase 身份验证向特定电话号码发送包含一次性令牌的短信? - Is it possible to send a SMS contain one-time-token to specific phone number through Firebase Authentication? Firebase Auth ID 令牌验证的必要性,即使有数据库的安全规则? - Necessity of Firebase Auth ID token validation, even if there are security rules of database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM