Get token name as input
This commit is contained in:
+3
-2
@@ -854,10 +854,11 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.createTokenByClientId = function (id, scope, expiresAt, callback) {
|
||||
Client.prototype.createTokenByClientId = function (id, scope, expiresAt, name, callback) {
|
||||
var data = {
|
||||
scope: scope,
|
||||
expiresAt: expiresAt
|
||||
expiresAt: expiresAt,
|
||||
name: name || ''
|
||||
};
|
||||
post('/api/v1/clients/' + id + '/tokens', data).success(function(data, status) {
|
||||
if (status !== 201) return callback(new ClientError(status, data));
|
||||
|
||||
Reference in New Issue
Block a user