Skip to content

Commit

Permalink
No more token.
Browse files Browse the repository at this point in the history
I will add later an admin field in user record.
  • Loading branch information
francois2metz committed Apr 7, 2011
1 parent a0b5be7 commit d9e8b6c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/server.js
Expand Up @@ -17,7 +17,6 @@ var connect = require('connect')
, Futures = require('futures')
, oauth2_client = require('oauth2-client')
, querystring = require('querystring')
, randomString = require('nodetk/random_str').randomString
, request = require('request')
, oauth2_server = require('oauth2-server')
, strictTransportSecurity = require('connect-sts')
Expand All @@ -32,7 +31,7 @@ var portable_contacts_server = require('./oauth2/portable_contacts')
, account = require('./middlewares/account')
, model = require('./model')
, ms_templates = require('./lib/ms_templates')
;
;

var oauth2_client_options = {
"auth_server": {
Expand All @@ -48,8 +47,6 @@ var oauth2_client_options = {
treat_access_token: function(data, req, res, callback) {
// Idem, since we are auth_server, directly request get_authorizations
var info = oauth2_server.token_info(data.token.access_token);
req.session.authorizations = {'auth_server': 'admin'};
req.session.token = randomString(128); // 22 chars length
callback();
}
},
Expand Down

0 comments on commit d9e8b6c

Please sign in to comment.