76 lines
3.4 KiB
HTML
76 lines
3.4 KiB
HTML
<script defer>
|
|
// This should fail when loading inside of IAmParadox27's PluginPages as ApiClientFound is not a normal event and this url should only be valid from the web/oidc/* path.
|
|
// Note that because we use the <base> element in head this is manually resolved relative to the current url
|
|
document.addEventListener('ApiClientFound', () => {
|
|
import(new URL('./OIDC-Auth-linking.js', window.location.href).href).then((renderer) => {
|
|
const view = document.querySelector("#oidc-config-page");
|
|
const homeButton = document.querySelector("a.emby-button.home");
|
|
homeButton.href = ApiClient.serverAddress();
|
|
homeButton.style.display = "";
|
|
renderer.default(view);
|
|
});
|
|
});
|
|
</script>
|
|
<div
|
|
class="page type-interior pluginConfigurationPage esqConfigurationPage"
|
|
data-controller="__plugin/OIDC-Auth-linking.js"
|
|
data-role="page"
|
|
id="oidc-config-page">
|
|
<div data-role="content">
|
|
<div class="content-primary">
|
|
<div class="sectionTitleContainer flex align-items-center">
|
|
<a href="#top" class="raised emby-button home" style="display: none">
|
|
<span aria-hidden="true" class="material-icons home"></span><span>Home</span>
|
|
</a>
|
|
<h2 class="sectionTitle">OIDC Linking:</h2>
|
|
<a
|
|
class="raised button-alt headerHelpButton"
|
|
href="https://gitea.narnian.us/lordwelch/jellyfin-plugin-sso"
|
|
is="emby-button"
|
|
target="_blank">${Help}</a>
|
|
</div>
|
|
<p>
|
|
Use the
|
|
<span aria-hidden="true" class="fab">
|
|
<span aria-hidden="true" class="material-icons add"></span>
|
|
</span>
|
|
button to create a new link for the given provider.
|
|
<br />
|
|
You may remove existing links by selecting them and pressing the
|
|
"Delete" button.
|
|
</p>
|
|
<p>
|
|
See the
|
|
<a
|
|
class="button-link"
|
|
href="https://gitea.narnian.us/lordwelch/jellyfin-plugin-sso"
|
|
is="emby-linkbutton">homepage</a>
|
|
and
|
|
<a
|
|
class="button-link"
|
|
href="https://gitea.narnian.us/lordwelch/jellyfin-plugin-oidc/issues"
|
|
is="emby-linkbutton">issue tracker
|
|
</a>
|
|
for more information.
|
|
</p>
|
|
<label class="checkbox-wrapper">
|
|
<input id="enable-delete" is="emby-checkbox" type="checkbox" />
|
|
<span class="checkbox-label">Enable "Delete" button.</span>
|
|
</label>
|
|
<h1 class="sectionTitle">Link a provider</h1>
|
|
<div class="verticalSection" title="Link a provider">
|
|
<h2 class="sectionTitle">OIDC</h2>
|
|
<div data-id="OIDC" id="oidc-provider-list"></div>
|
|
</div>
|
|
<button
|
|
class="button-delete raised emby-button"
|
|
disabled="true"
|
|
id="btn-delete-selected-links"
|
|
type="button">
|
|
<span aria-hidden="true" class="material-icons delete"></span>
|
|
<span>Delete Selected</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|