Class: passport

passport

Object that hold the passport.js configuration parameters

Constructor

new passport()

Properties:
Name Type Description
local boolean

enable local strategy

signUpByEmail boolean

user can signup by making POST /auth/signup with email and password, default is true, requires local strategy

verifyEmail boolean

user have to follow link in email address to verify his account, default is true

verifyEmailTemplate string

path to template for verifying email template

resetPassword boolean

allow user to reset password for account, default is true

resetPasswordEmailTemplate string

template for email used for reseting password

resetPasswordPageTemplate string

template for page used for reseting password

steam boolean

authorization by Steam openId - default is false - disabled.

sessionExpireAfterSeconds number

time to live of cookie based http sessions, default is 180 seconds.

GOOGLE_CLIENT_KEY string

used to authorize users by Google OAuth 2.0 strategy, obtainable in Google Developers' console

GOOGLE_CLIENT_SECRET string

used to authorize users by Google OAuth 2.0 strategy, obtainable in Google Developers' console

GOOGLE_SCOPES Array.<string>

OAuth 2.0 scopes required by application - see https://developers.google.com/+/api/oauth#login-scopes. Default value is ['https://www.googleapis.com/auth/userinfo.profile','https://www.googleapis.com/auth/userinfo.email']

GITHUB_CLIENT_ID string

used for github oauth, is populated automatically from enviroment value of the same name, obtainable here https://github.com/settings/applications

GITHUB_CLIENT_SECRET string

used for github oauth, is populated automatically from enviroment value of the same name, obtainable here https://github.com/settings/applications

TWITTER_CONSUMER_KEY string

used for twitter oauth, is populated automatically from enviroment value of the same name, obtainable here https://dev.twitter.com/

TWITTER_CONSUMER_SECRET string

used for twitter oauth, is populated automatically from enviroment value of the same name, obtainable here https://dev.twitter.com/

VK_APP_ID string

used for vk.com oauth, is populated automatically from enviroment value of the same name, obtainable here https://vk.com/dev

VK_APP_SECRET string

used for vk.com oauth, is populated automatically from enviroment value of the same name, obtainable here https://vk.com/dev

VK_SCOPE Array.<string>

array of scopes, that are required from user to share with application - used in vk.com authorization strategy

FACEBOOK_CLIENT_ID string

used for facebook.com oauth, is populated automatically from enviroment value of the same name, obtainable here https://developers.facebook.com/

FACEBOOK_CLIENT_SECRET string

used for facebook.com oauth, is populated automatically from enviroment value of the same name, obtainable here https://developers.facebook.com/

Extends