mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-18 04:20:58 +02:00
[#1377] added Authentik OAuth2 provider
Co-authored-by: Marc Singer <ms@pr0.tech>
This commit is contained in:
co-authored by
Marc Singer
parent
fd97732d4d
commit
6d08a5f36f
@@ -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>
|
||||
Reference in New Issue
Block a user