FEATURE: Allow admins to delete user SSO records in the UI (#10669)

Also displays the user's last payload in the admin UI to help with debugging SSO issues.
This commit is contained in:
Penar Musaraj
2020-09-15 10:00:10 -04:00
committed by GitHub
parent 6d7b8a71c0
commit 273db57d6e
10 changed files with 80 additions and 1 deletions

View File

@ -567,6 +567,16 @@ const AdminUser = User.extend({
_formatError(event) {
return `http: ${event.status} - ${event.body}`;
},
deleteSSORecord() {
return ajax(`/admin/users/${this.id}/sso_record.json`, {
type: "DELETE",
})
.then(() => {
this.set("single_sign_on_record", null);
})
.catch(popupAjaxError);
},
});
AdminUser.reopenClass({