stages/redirect: create redirect stage (#12275)
* create redirect stage * show "keep context" toggle in Flow mode only * fix typos * add docs Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com> * simplify property pass * simplify toggle * remove `print` statements whoops * fix typo * remove default from `RedirectStage.mode` * remove migration Signed-off-by: Jens Langhammer <jens@goauthentik.io> * oops Signed-off-by: Jens Langhammer <jens@goauthentik.io> * adjust docs Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -189,21 +189,28 @@ export class FlowForm extends WithCapabilitiesConfig(ModelForm<Flow, string>) {
 | 
			
		||||
                        ?selected=${this.instance?.authentication ===
 | 
			
		||||
                        AuthenticationEnum.RequireUnauthenticated}
 | 
			
		||||
                    >
 | 
			
		||||
                        ${msg("Require no authentication.")}
 | 
			
		||||
                        ${msg("Require no authentication")}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option
 | 
			
		||||
                        value=${AuthenticationEnum.RequireSuperuser}
 | 
			
		||||
                        ?selected=${this.instance?.authentication ===
 | 
			
		||||
                        AuthenticationEnum.RequireSuperuser}
 | 
			
		||||
                    >
 | 
			
		||||
                        ${msg("Require superuser.")}
 | 
			
		||||
                        ${msg("Require superuser")}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option
 | 
			
		||||
                        value=${AuthenticationEnum.RequireRedirect}
 | 
			
		||||
                        ?selected=${this.instance?.authentication ===
 | 
			
		||||
                        AuthenticationEnum.RequireRedirect}
 | 
			
		||||
                    >
 | 
			
		||||
                        ${msg("Require being redirected from another flow")}
 | 
			
		||||
                    </option>
 | 
			
		||||
                    <option
 | 
			
		||||
                        value=${AuthenticationEnum.RequireOutpost}
 | 
			
		||||
                        ?selected=${this.instance?.authentication ===
 | 
			
		||||
                        AuthenticationEnum.RequireOutpost}
 | 
			
		||||
                    >
 | 
			
		||||
                        ${msg("Require Outpost (flow can only be executed from an outpost).")}
 | 
			
		||||
                        ${msg("Require Outpost (flow can only be executed from an outpost)")}
 | 
			
		||||
                    </option>
 | 
			
		||||
                </select>
 | 
			
		||||
                <p class="pf-c-form__helper-text">
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user