JanrainCapture#

new JanrainCapture(options, authData)#

Parse Server Configuration#

To configure Parse Server for Janrain Capture authentication, use the following structure:

CODE
{
"auth": {
"janrain": {
"janrain_capture_host": "your-janrain-capture-host"
}
}
}

The adapter requires the following authData fields:

  • id: The Janrain Capture user ID.
  • access_token: An authorized Janrain Capture access token for the user.

Auth Payload Example#

CODE
{
"janrain": {
"id": "user's Janrain Capture ID as a string",
"access_token": "an authorized Janrain Capture access token for the user"
}
}

Notes#

Parse Server validates the provided authData using the Janrain Capture API.

Parameters:
NameTypeDescription
optionsObject

The adapter configuration options.

Properties
NameTypeDescription
janrain_capture_hostString

The Janrain Capture API host.

authDataObject

The authentication data provided by the client.

Properties
NameTypeDescription
idString

The Janrain Capture user ID.

access_tokenString

The Janrain Capture access token.