web/admin: allow web-based sources to have empty enrollment/authentication flow

closes #3683

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-28 18:45:44 +02:00
parent df4200992c
commit 0c48b40848
3 changed files with 21 additions and 0 deletions

View File

@ -331,6 +331,9 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
name="authenticationFlow" name="authenticationFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.authenticationFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({
@ -370,6 +373,9 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
name="enrollmentFlow" name="enrollmentFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.enrollmentFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({

View File

@ -257,6 +257,9 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
name="authenticationFlow" name="authenticationFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.authenticationFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({
@ -296,6 +299,9 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
name="enrollmentFlow" name="enrollmentFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.enrollmentFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({

View File

@ -358,6 +358,9 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
name="preAuthenticationFlow" name="preAuthenticationFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.preAuthenticationFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({
@ -395,6 +398,9 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
name="authenticationFlow" name="authenticationFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.authenticationFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({
@ -434,6 +440,9 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
name="enrollmentFlow" name="enrollmentFlow"
> >
<select class="pf-c-form-control"> <select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.enrollmentFlow === undefined}>
---------
</option>
${until( ${until(
new FlowsApi(DEFAULT_CONFIG) new FlowsApi(DEFAULT_CONFIG)
.flowsInstancesList({ .flowsInstancesList({