Add nav to leave linking page

This commit is contained in:
Matthew Strasiotto
2022-08-14 13:13:06 +10:00
committed by Matthew Strasitoto
parent bd60d7e32c
commit d8d7d616bd
2 changed files with 27 additions and 4 deletions
+14
View File
@@ -6,6 +6,20 @@ const ssoConfigLinking = {
var provider_list = view.querySelector("#" + provider_list_id);
provider_list.innerHTML = "";
const currentUserId = ApiClient.getCurrentUserId();
if (currentUserId) {
ApiClient.fetch(
{
type: "GET",
url: ApiClient.getUrl(`sso/OID/links/${currentUserId}`),
},
true
).then((resp) => {
resp.json().then((x) => console.log(x));
});
}
fetch(new Request(ApiClient.getUrl("sso/OID/GetNames"))).then((resp) => {
resp.json().then((config_names) => {
ssoConfigLinking.loadProviderList(provider_list, config_names, "oid");