Skip to content

Commit

Permalink
Merge pull request Sunbird-Ed#16 from JuliaComputing/pm/custom_login_…
Browse files Browse the repository at this point in the history
…page-1

Route auth page through a custom login page
  • Loading branch information
anujtech46 authored Dec 23, 2018
2 parents c2aa9c3 + 355ed22 commit be601d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ app.use(session({
store: memoryStore
}))

app.all('/jclogin', function(req, res) {
console.log('Am in jclogin rule ............................');
res.sendFile(path.join(__dirname, 'helpers/static_files' , 'jcauth.html'))
})

app.use(keycloak.middleware({ admin: '/callback', logout: '/logout' }))

app.set('view engine', 'ejs')
Expand Down

0 comments on commit be601d4

Please sign in to comment.