Return canonical scope in REST responses

The '*' scope is purely an implementation detail. It cannot
be requested as such.
This commit is contained in:
Girish Ramakrishnan
2018-05-02 12:36:35 -07:00
parent 182ea3dac3
commit f09e8664d1
4 changed files with 11 additions and 11 deletions
+1
View File
@@ -135,6 +135,7 @@ function initialize() {
var token = tokendb.generateToken();
var expires = Date.now() + constants.DEFAULT_TOKEN_EXPIRATION;
var scope = accesscontrol.canonicalScope(client.scope);
tokendb.add(token, authCode.userId, authCode.clientId, expires, client.scope, function (error) {
if (error) return callback(error);