@7isys/loopback-component-passport 中文文档教程
loopback-component-passport
Overview
添加领域的支持
您可以在选项对象中传递和您的领域。 例如:
options = { userRealm: <你的领域名称>, profileToUser:映射器... }
该模块提供了 LoopBack 和 Passport 支持第三方登录和账号 LoopBack 应用程序的链接。
请参阅 官方文档了解更多信息。
All local accounts requires verification
All third party accounts will login with an email of uniqueID@loopback.provider.com
example 123456@loopback.facebook.com
这将允许用户链接他们想要的社交媒体帐户,并且如果用户希望将它们分开,则可以使用用于 facebook/twitter/google/local 的相同电子邮件帐户注册。
如有必要,Facebook 个人资料信息(如电子邮件、性别、时区等)仍可能包含在内。 看 https://github.com/strongloop/loopback-example-passport/blob/master/README.md#4-facebook-profile-info。
包括电子邮件在内的所有用户所需信息都将可用,但该帐户的主要电子邮件将保留 uniqueID@loopback.facebook.com
。
Module Long Term Support Policy
该模块采用 模块长期支持 (LTS) 政策, 具有以下生命周期结束 (EOL) 日期:
Version | Status | Published | EOL |
---|---|---|---|
3.x | Maintenance LTS | Dec 2016 | Dec 2020 |
在文档。
loopback-component-passport
Overview
Support of Realms Added
You can pass and your realm in options object. For eg :
options = { userRealm: <name-of-your-realm>, profileToUser: mapper ... }
The module provides integration between LoopBack and Passport to support third-party login and account linking for LoopBack applications.
Please see the official documentation for more information.
All local accounts requires verification
All third party accounts will login with an email of uniqueID@loopback.provider.com
example 123456@loopback.facebook.com
which will allow the user to link the social media accounts that they want as well as the users could sign up with the same email account that is used for facebook/twitter/google/local if they wish to keep them separate.
Facebook profile information (such as email, gender, timezone, etc) may still be included if necessary. See https://github.com/strongloop/loopback-example-passport/blob/master/README.md#4-facebook-profile-info.
All user required info including the email will be available, but the main email for the account will remain uniqueID@loopback.facebook.com
.
Module Long Term Support Policy
This module adopts the Module Long Term Support (LTS) policy, with the following End Of Life (EOL) dates:
Version | Status | Published | EOL |
---|---|---|---|
3.x | Maintenance LTS | Dec 2016 | Dec 2020 |
Learn more about our LTS plan in docs.