2022-11-01 03:17:10 +08:00
|
|
|
<script>
|
|
|
|
import Field from "@/components/base/Field.svelte";
|
|
|
|
|
|
|
|
export let key = "";
|
|
|
|
export let config = {};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="section-title">Azure AD endpoints</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col-lg-12">
|
2023-02-24 03:07:00 +08:00
|
|
|
<Field class="form-field {config.enabled ? 'required' : ''}" name="{key}.authUrl" let:uniqueId>
|
2022-11-01 03:17:10 +08:00
|
|
|
<label for={uniqueId}>Auth URL</label>
|
2023-02-24 03:07:00 +08:00
|
|
|
<input type="url" id={uniqueId} bind:value={config.authUrl} required={config.enabled} />
|
2022-11-01 03:17:10 +08:00
|
|
|
<div class="help-block">
|
|
|
|
Eg. {`https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/authorize`}
|
|
|
|
</div>
|
|
|
|
</Field>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
2023-02-24 03:07:00 +08:00
|
|
|
<Field class="form-field {config.enabled ? 'required' : ''}" name="{key}.tokenUrl" let:uniqueId>
|
2022-11-01 03:17:10 +08:00
|
|
|
<label for={uniqueId}>Token URL</label>
|
2023-02-24 03:07:00 +08:00
|
|
|
<input type="text" id={uniqueId} bind:value={config.tokenUrl} required={config.enabled} />
|
2022-11-01 03:17:10 +08:00
|
|
|
<div class="help-block">
|
|
|
|
Eg. {`https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/token`}
|
|
|
|
</div>
|
|
|
|
</Field>
|
|
|
|
</div>
|
|
|
|
</div>
|