nl_tokens: Strategy constructor .
pl_tokens: function Strategy ( options , verify ) { options = options || { } ; this . serverURL = options . serverURL || 'https://account.lab.fiware.org' ; this . isLegacy = options . isLegacy === <mask> ? options . isLegacy : false ; if ( this . serverURL . endsWith ( '/' ) ) { this . serverURL = this . serverURL . slice ( 0 , - 1 ) ; } options . authorizationURL = this . serverURL + '/oauth2/authorize' ; options . tokenURL = this . serverURL + '/oauth2/token' ; // Authorization: Basic BASE64(CLIENT_ID:CLIENT_SECRET) var authorizationHeader = 'Basic ' + new Buffer ( options . clientID + ':' + options . clientSecret ) . toString ( 'base64' ) options . customHeaders = { 'Authorization' : authorizationHeader } OAuth2Strategy . call ( this , options , verify ) ; this . name = 'fiware' ; }