且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Devise token_authenticatable已弃用,有什么替代方法?

更新时间:2023-02-19 13:58:56

从他们的博客


我们不能消化TokenAuthenticatable提供的身份验证令牌,因为它们通常是令牌多次使用的API的一部分,因为可认证令牌的使用在应用程序之间可能有很大差异,每个应用程序需要不同的安全性我们决定从Devise中删除TokenAuthenticatable,允许用户选择***选项。

"we cannot digest the authentication token provided by TokenAuthenticatable, as they are often part of APIs where the token is used many times. Since the usage of the authenticatable token can vary considerably in between applications, each requiring different safety guarantees, we have decided to remove TokenAuthenticatable from Devise, allowing users to pick the best option."

现在由开发人员请根据使用身份验证令牌选择***方案。

It's now up to the developers to choose the best fit depending on their usage of the authentication token.

将此要点