Skip to content

Commit

Permalink
Remove additional CAS2 attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
fangli committed Apr 15, 2014
1 parent 2bdbacc commit c53fda1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/jcas.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*!
* A Node.js CAS client, implementing the protocol as defined at:
* http://www.jasig.org/cas/protocol
Expand Down Expand Up @@ -164,13 +163,8 @@ CAS.prototype.validate = function(ticket, callback, service, renew)
return;
}
var username = elemUser[0];
var attributes = elemSuccess['cas:attributes'][0];

callback(undefined, true, username, {
'username': username,
'attributes': attributes,
'ticket': ticket,
});
callback(undefined, true, username);
return;
}

Expand Down

0 comments on commit c53fda1

Please sign in to comment.