projects
/
xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6943f
)
Allow both JWT grant types 4realz.
author
Ben Thompson
<ben@xtuple.com>
Fri, 18 Jul 2014 21:09:12 +0000
(17:09 -0400)
committer
Ben Thompson
<ben@xtuple.com>
Fri, 18 Jul 2014 21:09:12 +0000
(17:09 -0400)
node-datasource/oauth2/oauth2.js
patch
|
blob
|
history
diff --git
a/node-datasource/oauth2/oauth2.js
b/node-datasource/oauth2/oauth2.js
index
498ca03
..
d42b742
100644
(file)
--- a/
node-datasource/oauth2/oauth2.js
+++ b/
node-datasource/oauth2/oauth2.js
@@
-429,7
+429,7
@@
var jwtExchange = function (client, header, claimSet, signature, done) {
}
};
// Support both known grant types.
-
//
server.exchange('assertion', jwtBearer(jwtExchange));
+server.exchange('assertion', jwtBearer(jwtExchange));
server.exchange('urn:ietf:params:oauth:grant-type:jwt-bearer', jwtBearer(jwtExchange));
// TODO - We need a token revoke endpoint some day.