Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
a3ced159
There was a problem fetching the pipeline summary.
Commit
a3ced159
authored
8 years ago
by
Lucas Gabriel Lima
Browse files
Options
Downloads
Patches
Plain Diff
add passport authentication module to server.js
parent
dceb479c
No related branches found
No related tags found
1 merge request
!20
Auth
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.js
+7
-0
7 additions, 0 deletions
server.js
with
7 additions
and
0 deletions
server.js
+
7
−
0
View file @
a3ced159
...
...
@@ -5,8 +5,15 @@ var config = require(libs + 'config')
var
log
=
require
(
libs
+
'
log
'
)(
module
)
var
app
=
require
(
libs
+
'
app
'
)
//authentication
var
passport
=
require
(
'
passport
'
);
var
jwt
=
require
(
'
jwt-simple
'
);
app
.
set
(
'
port
'
,
process
.
env
.
PORT
||
config
.
get
(
'
port
'
)
||
3000
)
// Use the passport package
app
.
use
(
passport
.
initialize
());
var
server
=
app
.
listen
(
app
.
get
(
'
port
'
),
function
()
{
debug
(
'
Express server listening on port
'
+
server
.
address
().
port
)
log
.
info
(
'
Express server listening on port
'
+
server
.
address
().
port
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment