3 function OauthClientStrategy(options
) {
4 this.options
= options
|| {};
6 this.preload = function() {
9 return Promise
.all(strategies
);
12 this.map = function(oauthClient
) {
13 var id
= oauthClient
.id
|| (oauthClient
._id
&& oauthClient
._id
.toHexString());
17 name
: oauthClient
.name
,
19 clientKey
: oauthClient
.clientKey
,
20 clientSecret
: oauthClient
.clientSecret
,
21 registeredRedirectUri
: oauthClient
.registeredRedirectUri
,
22 ownerUserId
: oauthClient
.ownerUserId
,
23 revoked
: oauthClient
.revoked
28 OauthClientStrategy
.prototype = {
29 name
: 'OauthClientStrategy'
32 module
.exports
= OauthClientStrategy
;