{#if edit} {$i18n.t('Edit Connection')} {:else} {$i18n.t('Add Connection')} {/if}

{ importHandler(e); }} />
{ e.preventDefault(); submitHandler(); }} >
{$i18n.t('Type')}
{#if oauthAuthTypes.includes(auth_type)}
{#if oauthClientInfo}
{/if}
{#if !oauthClientInfo}
{$i18n.t('Not Registered')}
{:else}
{$i18n.t('Registered')}
{/if}
{/if}
{#if auth_type === 'bearer'} {:else if auth_type === 'none'}
{$i18n.t('No authentication')}
{:else if auth_type === 'session'}
{$i18n.t('Forwards system user session credentials to authenticate')}
{:else if auth_type === 'system_oauth'}
{$i18n.t('Forwards system user OAuth access token to authenticate')}
{:else if auth_type === 'oauth_2.1'}
{$i18n.t('Uses OAuth 2.1 Dynamic Client Registration')}
{:else if auth_type === 'oauth_2.1_static'}
{/if}
{ showAccessControlModal = true; }} />
{#if showAdvanced} {#if ['', 'openapi'].includes(type)}

{$i18n.t('Forward cookies from your Open WebUI request to this server.')}

{/if} {#if ['', 'openapi'].includes(type)}
{#if spec_type === 'url'}
{:else if spec_type === 'json'}