Class: module.exports Static Methods

Link a third-party application credential with the LoopBack application.

Arguments

Name

Type

Description

appId

String

The LoopBack application iID.

provider

String

The third party provider name.

authScheme

String

The authentication scheme.

credentials

Object

Credentials for the given scheme.

cb

Function

The callback function.

Callback

Name

Type

Description

err

Error or String

The error object or string.

user

Object

The user object.

[info]

Object

The auth info object.

identity: UserIdentity object

accessToken: AccessToken object

Class: PassportConfigurator(app)

The passport configurator

Arguments

Name

Type

Description

app

Object

The LoopBack app instance

Returns

Name

Type

Description

result

PassportConfigurator

Class: PassportConfigurator Static Methods

if()

Redirect the user to Facebook for authentication. When complete,
Facebook will redirect the user back to the application at
/auth/facebook/callback with the authorization code

if()

Facebook will redirect the user to this URL after approval. Finish the
authentication process by attempting to obtain an access token using the
authorization code. If access was granted, the user will be logged in.
Otherwise, authentication has failed.