PLT-3984 Add the ability to regenerate OAuth Client Secret (#3899)

Этот коммит содержится в:
enahum
2016-08-30 21:15:40 -03:00
коммит произвёл GitHub
родитель e9bc77a8f7
Коммит 1326ab66a1
9 изменённых файлов: 150 добавлений и 9 удалений

Просмотреть файл

@@ -1573,6 +1573,16 @@ export default class Client {
end(this.handleResponse.bind(this, 'deauthorizeOAuthApp', success, error));
}
regenerateOAuthAppSecret(id, success, error) {
request.
post(`${this.getOAuthRoute()}/${id}/regen_secret`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
send().
end(this.handleResponse.bind(this, 'regenerateOAuthAppSecret', success, error));
}
// Routes for Hooks
addIncomingHook(hook, success, error) {