Allow to specify token scopes

This commit is contained in:
Johannes Zellner
2022-09-22 21:59:10 +02:00
parent 16763d5e28
commit 9d349a038c
3 changed files with 14 additions and 3 deletions

View File

@@ -1680,9 +1680,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.createToken = function (name, callback) {
Client.prototype.createToken = function (name, scope, callback) {
var data = {
name: name
name: name,
scope: scope
};
post('/api/v1/tokens', data, null, function (error, data, status) {