flows: provider invalidation (#5048)
* add initial Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add web stage for session end Signed-off-by: Jens Langhammer <jens@goauthentik.io> * migrate saml and tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * cleanup Signed-off-by: Jens Langhammer <jens@goauthentik.io> * group flow settings when providers have multiple flows Signed-off-by: Jens Langhammer <jens@goauthentik.io> * adjust name for default provider invalidation Signed-off-by: Jens Langhammer <jens@goauthentik.io> * re-make migrations Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add invalidation_flow to saml importer Signed-off-by: Jens Langhammer <jens@goauthentik.io> * re-do migrations again Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update web stuff to get rid of old libraries Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make unbind flow for ldap configurable Signed-off-by: Jens Langhammer <jens@goauthentik.io> * unrelated: fix flow inspector Signed-off-by: Jens Langhammer <jens@goauthentik.io> * handle invalidation_flow as optional, as it should be Signed-off-by: Jens Langhammer <jens@goauthentik.io> * also fix ldap outpost Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't generate URL in client Signed-off-by: Jens Langhammer <jens@goauthentik.io> * actually make it work??? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix migration breaking things...? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * start fixing tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix fallback Signed-off-by: Jens Langhammer <jens@goauthentik.io> * re-migrate Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix duplicate flow setting Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add migration Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix race condition with brand Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix oauth test Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix SAML tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add to wizard, fix required Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make required, start release notes Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -249,7 +249,8 @@ export class ProxyProviderFormPage extends BaseProviderForm<ProxyProvider> { | ||||
|     } | ||||
|  | ||||
|     renderForm(): TemplateResult { | ||||
|         return html` <ak-form-element-horizontal label=${msg("Name")} ?required=${true} name="name"> | ||||
|         return html` | ||||
|             <ak-form-element-horizontal label=${msg("Name")} ?required=${true} name="name"> | ||||
|                 <input | ||||
|                     type="text" | ||||
|                     value="${ifDefined(this.instance?.name)}" | ||||
| @ -257,34 +258,6 @@ export class ProxyProviderFormPage extends BaseProviderForm<ProxyProvider> { | ||||
|                     required | ||||
|                 /> | ||||
|             </ak-form-element-horizontal> | ||||
|             <ak-form-element-horizontal | ||||
|                 label=${msg("Authentication flow")} | ||||
|                 ?required=${false} | ||||
|                 name="authenticationFlow" | ||||
|             > | ||||
|                 <ak-flow-search | ||||
|                     flowType=${FlowsInstancesListDesignationEnum.Authentication} | ||||
|                     .currentFlow=${this.instance?.authenticationFlow} | ||||
|                     required | ||||
|                 ></ak-flow-search> | ||||
|                 <p class="pf-c-form__helper-text"> | ||||
|                     ${msg("Flow used when a user access this provider and is not authenticated.")} | ||||
|                 </p> | ||||
|             </ak-form-element-horizontal> | ||||
|             <ak-form-element-horizontal | ||||
|                 label=${msg("Authorization flow")} | ||||
|                 ?required=${true} | ||||
|                 name="authorizationFlow" | ||||
|             > | ||||
|                 <ak-flow-search | ||||
|                     flowType=${FlowsInstancesListDesignationEnum.Authorization} | ||||
|                     .currentFlow=${this.instance?.authorizationFlow} | ||||
|                     required | ||||
|                 ></ak-flow-search> | ||||
|                 <p class="pf-c-form__helper-text"> | ||||
|                     ${msg("Flow used when authorizing this provider.")} | ||||
|                 </p> | ||||
|             </ak-form-element-horizontal> | ||||
|  | ||||
|             <div class="pf-c-card pf-m-selectable pf-m-selected"> | ||||
|                 <div class="pf-c-card__body">${this.renderModeSelector()}</div> | ||||
| @ -418,7 +391,57 @@ ${this.instance?.skipPathRegex}</textarea | ||||
|                         </p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                 </div> | ||||
|             </ak-form-group>`; | ||||
|             </ak-form-group> | ||||
|  | ||||
|             <ak-form-group> | ||||
|                 <span slot="header"> ${msg("Flow settings")} </span> | ||||
|                 <div slot="body" class="pf-c-form"> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${msg("Authentication flow")} | ||||
|                         ?required=${false} | ||||
|                         name="authenticationFlow" | ||||
|                     > | ||||
|                         <ak-flow-search | ||||
|                             flowType=${FlowsInstancesListDesignationEnum.Authentication} | ||||
|                             .currentFlow=${this.instance?.authenticationFlow} | ||||
|                         ></ak-flow-search> | ||||
|                         <p class="pf-c-form__helper-text"> | ||||
|                             ${msg( | ||||
|                                 "Flow used when a user access this provider and is not authenticated.", | ||||
|                             )} | ||||
|                         </p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${msg("Authorization flow")} | ||||
|                         required | ||||
|                         name="authorizationFlow" | ||||
|                     > | ||||
|                         <ak-flow-search | ||||
|                             flowType=${FlowsInstancesListDesignationEnum.Authorization} | ||||
|                             .currentFlow=${this.instance?.authorizationFlow} | ||||
|                             required | ||||
|                         ></ak-flow-search> | ||||
|                         <p class="pf-c-form__helper-text"> | ||||
|                             ${msg("Flow used when authorizing this provider.")} | ||||
|                         </p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                     <ak-form-element-horizontal | ||||
|                         label=${msg("Invalidation flow")} | ||||
|                         name="invalidationFlow" | ||||
|                         required | ||||
|                     > | ||||
|                         <ak-flow-search | ||||
|                             flowType=${FlowsInstancesListDesignationEnum.Invalidation} | ||||
|                             .currentFlow=${this.instance?.invalidationFlow} | ||||
|                             required | ||||
|                         ></ak-flow-search> | ||||
|                         <p class="pf-c-form__helper-text"> | ||||
|                             ${msg("Flow used when logging out of this provider.")} | ||||
|                         </p> | ||||
|                     </ak-form-element-horizontal> | ||||
|                 </div> | ||||
|             </ak-form-group> | ||||
|         `; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L.
					Jens L.