Skip to content

ali-nahid/loopback-component-passport

 
 

Repository files navigation

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 ... }

Support of Promises Added

You can call the function using Async/Await for can user Resolve promises to get output.

const [user, identity, token] = await UserIdentity.login(....)

The callback method also changes with the following update.

Previously

UserIdentity.login(...., function(err, user, identity, token) { });

Now

UserIdentity.login(...., function(err, [user, identity, token]) { });

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.

About

LoopBack passport integration to support third party logins and account linking

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%