Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Raiano committed Nov 21, 2011
1 parent 18ba824 commit 810c0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var authPath= '/auth',
deauthPath= '/deauth',
successPath= '/success',
validatePath= '/validate';
validatePath= '/val';

var ssoJuggler = require('../lib/ssoJuggler').createSSOJuggler({
authenticationPath: '/login',
Expand Down Expand Up @@ -90,7 +90,7 @@ var consumerToken = 'testToken';

app.get('/', function(req, res){
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write('Login <a href="'+authPath+'?consumerToken='+consumerToken+'&callbackUrl=http://localhost:3001/val/">'+authPath+'?consumerToken='+consumerToken+'&callbackUrl=http://localhost:3001/val</a>');
res.write('Login <a href="'+authPath+'?consumerToken='+consumerToken+'&callbackUrl=http://localhost:3001/validate/">'+authPath+'?consumerToken='+consumerToken+'&callbackUrl=http://localhost:3001/validate</a>');
res.write('</br>');
res.write('</br>');
res.write('Logout <a href="'+deauthPath+'?callbackUrl=http://www.google.ch">'+deauthPath+'?callbackUrl=http://www.google.ch</a>');
Expand Down
3 changes: 2 additions & 1 deletion lib/ssoJuggler.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Juggler = function(options) {
cookieExpirationTime: 60,
authPath: '/auth',
deauthPath: '/deauth',
successPath: '/success'
successPath: '/success',
validatePath: '/val'
};

this.options = mergeOptions(options, defaults);
Expand Down

0 comments on commit 810c0a0

Please sign in to comment.