[#1377] added Authentik OAuth2 provider
Co-authored-by: Marc Singer <ms@pr0.tech>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<script>
|
||||
import Field from "@/components/base/Field.svelte";
|
||||
|
||||
export let key = "";
|
||||
export let config = {};
|
||||
</script>
|
||||
|
||||
<div class="section-title">Authentik endpoints</div>
|
||||
<div class="grid">
|
||||
<div class="col-lg-12">
|
||||
<Field class="form-field required" name="{key}.authUrl" let:uniqueId>
|
||||
<label for={uniqueId}>Auth URL</label>
|
||||
<input type="url" id={uniqueId} bind:value={config.authUrl} required />
|
||||
<div class="help-block">Eg. https://YOUR_AUTHENTIK_URL/application/o/authorize/</div>
|
||||
</Field>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<Field class="form-field required" name="{key}.tokenUrl" let:uniqueId>
|
||||
<label for={uniqueId}>Token URL</label>
|
||||
<input type="text" id={uniqueId} bind:value={config.tokenUrl} required />
|
||||
<div class="help-block">Eg. https://YOUR_AUTHENTIK_URL/application/o/token/</div>
|
||||
</Field>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<Field class="form-field" name="{key}.userApiUrl" let:uniqueId>
|
||||
<label for={uniqueId}>User API URL</label>
|
||||
<input type="text" id={uniqueId} bind:value={config.userApiUrl} required />
|
||||
<div class="help-block">Eg. https://YOUR_AUTHENTIK_URL/application/o/userinfo/</div>
|
||||
</Field>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,6 @@
|
||||
import SelfHostedOptions from "@/components/settings/providers/SelfHostedOptions.svelte";
|
||||
import MicrosoftOptions from "@/components/settings/providers/MicrosoftOptions.svelte";
|
||||
import AuthentikOptions from "@/components/settings/providers/AuthentikOptions.svelte";
|
||||
|
||||
// Object list with all supported OAuth2 providers in the format:
|
||||
// ```
|
||||
@@ -64,4 +65,9 @@ export default {
|
||||
title: "LiveChat",
|
||||
icon: "ri-chat-1-fill",
|
||||
},
|
||||
authentikAuth: {
|
||||
title: "Authentik",
|
||||
icon: "ri-lock-fill",
|
||||
optionsComponent: AuthentikOptions,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user