PLT-3484 OAuth2 Service Provider (#3632)
* PLT-3484 OAuth2 Service Provider * PM text review for OAuth 2.0 Service Provider * PLT-3484 OAuth2 Service Provider UI tweaks (#3668) * Tweaks to help text * Pushing OAuth improvements (#3680) * Re-arrange System Console for OAuth 2.0 Provider
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
ea027c8de4
Коммит
5bc3cea6fe
@@ -1498,6 +1498,36 @@ export default class Client {
|
||||
end(this.handleResponse.bind(this, 'allowOAuth2', success, error));
|
||||
}
|
||||
|
||||
listOAuthApps(success, error) {
|
||||
request.
|
||||
get(`${this.getOAuthRoute()}/list`).
|
||||
set(this.defaultHeaders).
|
||||
type('application/json').
|
||||
accept('application/json').
|
||||
send().
|
||||
end(this.handleResponse.bind(this, 'getOAuthApps', success, error));
|
||||
}
|
||||
|
||||
deleteOAuthApp(id, success, error) {
|
||||
request.
|
||||
post(`${this.getOAuthRoute()}/delete`).
|
||||
set(this.defaultHeaders).
|
||||
type('application/json').
|
||||
accept('application/json').
|
||||
send({id}).
|
||||
end(this.handleResponse.bind(this, 'deleteOAuthApp', success, error));
|
||||
}
|
||||
|
||||
getOAuthAppInfo(id, success, error) {
|
||||
request.
|
||||
get(`${this.getOAuthRoute()}/app/${id}`).
|
||||
set(this.defaultHeaders).
|
||||
type('application/json').
|
||||
accept('application/json').
|
||||
send().
|
||||
end(this.handleResponse.bind(this, 'getOAuthAppInfo', success, error));
|
||||
}
|
||||
|
||||
// Routes for Hooks
|
||||
|
||||
addIncomingHook(hook, success, error) {
|
||||
|
||||
Ссылка в новой задаче
Block a user