Common module for serenity applications.
This is the authentication module for serenity
Install via npm and git
npm install git+
app:tcApi:tcUser:auth0:client: ''secret: ''auth:enabled: falseperms:- challengeApppaths:- httpVerb: DELETEpath: '*'- httpVerb: PUTpath: '*'- httpVerb: POSTpath: '*'- httpVerb: GETpath: '/challenges/:challengeId/files/:fileId/download'- httpVerb: GETpath: '/challenges/:challengeId/files/:fileId/upload'- httpVerb: GETpath: '/challenges/:challengeId/submissions/:submissionId/files/:fileId/upload'- httpVerb: GETpath: '/challenges/:challengeId/submissions/:submissionId/files/:fileId/download'
This is the default configuration which is used in lc1-challenge-service. There is no change in this configuration. This configuration object has to be passed to serenity-auth module during instantiation
var auth = require('lc1-node-auth');// central point for all authenticationauth.auth(app, config, routeHelper.errorHandler);// NOTE: Above the last argument is the error handler middleware. If any error occured in serenity-middleware it will be passed to next middleware. This removes the dependency with route-helper