sources/oauth: allow overriding of all scopes

closes #3747

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-10-16 21:21:43 +02:00
parent 10cfccd999
commit 96a30af0eb
15 changed files with 23971 additions and 22998 deletions

View File

@ -306,17 +306,14 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
>
<textarea class="pf-c-form-control"></textarea>
</ak-form-element-horizontal>
<ak-form-element-horizontal
label=${t`Additional Scope`}
name="additionalScopes"
>
<ak-form-element-horizontal label=${t`Scopes`} name="additionalScopes">
<input
type="text"
value="${first(this.instance?.additionalScopes, "")}"
class="pf-c-form-control"
/>
<p class="pf-c-form__helper-text">
${t`Additional scopes to be passed to the OAuth Provider, separated by space.`}
${t`Additional scopes to be passed to the OAuth Provider, separated by space. To replace existing scopes, prefix with *.`}
</p>
</ak-form-element-horizontal>
</div>