From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/admin/auth/edit.tmpl | 464 +++++++++++++++++++++++++++++++++ templates/admin/auth/list.tmpl | 38 +++ templates/admin/auth/new.tmpl | 122 +++++++++ templates/admin/auth/source/ldap.tmpl | 145 +++++++++++ templates/admin/auth/source/oauth.tmpl | 109 ++++++++ templates/admin/auth/source/smtp.tmpl | 59 +++++ templates/admin/auth/source/sspi.tmpl | 43 +++ 7 files changed, 980 insertions(+) create mode 100644 templates/admin/auth/edit.tmpl create mode 100644 templates/admin/auth/list.tmpl create mode 100644 templates/admin/auth/new.tmpl create mode 100644 templates/admin/auth/source/ldap.tmpl create mode 100644 templates/admin/auth/source/oauth.tmpl create mode 100644 templates/admin/auth/source/smtp.tmpl create mode 100644 templates/admin/auth/source/sspi.tmpl (limited to 'templates/admin/auth') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl new file mode 100644 index 0000000..a8b2049 --- /dev/null +++ b/templates/admin/auth/edit.tmpl @@ -0,0 +1,464 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin edit authentication")}} +
+

+ {{ctx.Locale.Tr "admin.auths.edit"}} +

+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} + +
+ + + {{.Source.TypeName}} +
+
+ + +
+ + + {{if or .Source.IsLDAP .Source.IsDLDAP}} + {{$cfg:=.Source.Cfg}} +
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ {{if .Source.IsLDAP}} +
+ + +
+
+ + +
+ {{end}} +
+ + +
+ {{if .Source.IsDLDAP}} +
+ + +
+ {{end}} +
+ + +
+
+ + +
+
+ + +

{{ctx.Locale.Tr "admin.auths.restricted_filter_helper"}}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + {{if .Source.IsLDAP}} +
+
+ + +
+
+
+ + +
+
+
+ + +
+
+ {{end}} +
+
+ + +

{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

+
+
+
+
+ + +
+
+ {{end}} + + + {{if .Source.IsSMTP}} + {{$cfg:=.Source.Cfg}} +
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+

{{ctx.Locale.Tr "admin.auths.force_smtps_helper"}}

+
+
+
+ + +
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.helo_hostname_helper"}}

+
+
+
+ + +
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.allowed_domains_helper"}}

+
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

+
+
+ {{end}} + + + {{if .Source.IsPAM}} + {{$cfg:=.Source.Cfg}} +
+ + +
+
+ + +
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

+
+
+ {{end}} + + + {{if .Source.IsOAuth2}} + {{$cfg:=.Source.Cfg}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

+
+
+
+
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + {{range .OAuth2Providers}}{{if .CustomURLSettings}} + + + + + + + {{end}}{{end}} + +
+ + +
+
+ + +

{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_name_helper"}}

+
+
+ + +

{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_value_helper"}}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {{end}} + + + {{if .Source.IsSSPI}} + {{$cfg:=.Source.Cfg}} +
+
+ + +

{{ctx.Locale.Tr "admin.auths.sspi_auto_create_users_helper"}}

+
+
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.sspi_auto_activate_users_helper"}}

+
+
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.sspi_strip_domain_names_helper"}}

+
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.sspi_separator_replacement_helper"}}

+
+
+ + +

{{ctx.Locale.Tr "admin.auths.sspi_default_language_helper"}}

+
+ {{end}} + {{if (or .Source.IsLDAP .Source.IsOAuth2)}} +
+
+ + +
+
+ {{end}} +
+
+ + +
+
+ +
+ + +
+
+
+ +

+ {{ctx.Locale.Tr "admin.auths.tips"}} +

+
+
{{ctx.Locale.Tr "admin.auths.tips.gmail_settings"}}
+

Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true

+ +
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general"}}:
+

{{ctx.Locale.Tr "admin.auths.tips.oauth2.general.tip"}}

+
+
+ + + +{{template "admin/layout_footer" .}} diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl new file mode 100644 index 0000000..6483ec8 --- /dev/null +++ b/templates/admin/auth/list.tmpl @@ -0,0 +1,38 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}} +
+

+ {{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) + +

+
+ + + + + + + + + + + + + + {{range .Sources}} + + + + + + + + + + {{end}} + +
ID{{ctx.Locale.Tr "admin.auths.name"}}{{ctx.Locale.Tr "admin.auths.type"}}{{ctx.Locale.Tr "admin.auths.enabled"}}{{ctx.Locale.Tr "admin.auths.updated"}}{{ctx.Locale.Tr "admin.users.created"}}{{ctx.Locale.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeName}}{{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}{{DateTime "short" .UpdatedUnix}}{{DateTime "short" .CreatedUnix}}{{svg "octicon-pencil"}}
+
+
+{{template "admin/layout_footer" .}} diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl new file mode 100644 index 0000000..47fa828 --- /dev/null +++ b/templates/admin/auth/new.tmpl @@ -0,0 +1,122 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin new authentication")}} +
+

+ {{ctx.Locale.Tr "admin.auths.new"}} +

+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} + +
+ + +
+
+ + +
+ + + {{template "admin/auth/source/ldap" .}} + + + {{template "admin/auth/source/smtp" .}} + + +
+ + + + +
+
+
+ + +

{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

+
+
+ + + {{template "admin/auth/source/oauth" .}} + + + {{template "admin/auth/source/sspi" .}} + +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+ +
+
+
+ +

+ {{ctx.Locale.Tr "admin.auths.tips"}} +

+
+
{{ctx.Locale.Tr "admin.auths.tips.gmail_settings"}}
+

Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true

+ +
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general"}}:
+

{{ctx.Locale.Tr "admin.auths.tips.oauth2.general.tip"}}

+ +
{{ctx.Locale.Tr "admin.auths.tip.oauth2_provider"}}
+
+
  • Bitbucket
  • + {{ctx.Locale.Tr "admin.auths.tip.bitbucket" "https://bitbucket.org/account/user/{your-username}/oauth-consumers/new"}} +
  • Dropbox
  • + {{ctx.Locale.Tr "admin.auths.tip.dropbox" "https://www.dropbox.com/developers/apps"}} +
  • Facebook
  • + {{ctx.Locale.Tr "admin.auths.tip.facebook" "https://developers.facebook.com/apps"}} +
  • GitHub
  • + {{ctx.Locale.Tr "admin.auths.tip.github" "https://github.com/settings/applications/new"}} +
  • GitLab
  • + {{ctx.Locale.Tr "admin.auths.tip.gitlab_new" "https://gitlab.com/-/profile/applications"}} +
  • Google
  • + {{ctx.Locale.Tr "admin.auths.tip.google_plus" "https://console.developers.google.com/"}} +
  • OpenID Connect
  • + {{ctx.Locale.Tr "admin.auths.tip.openid_connect"}} +
  • Twitter
  • + {{ctx.Locale.Tr "admin.auths.tip.twitter" "https://dev.twitter.com/apps"}} +
  • Discord
  • + {{ctx.Locale.Tr "admin.auths.tip.discord" "https://discordapp.com/developers/applications/me"}} +
  • Gitea
  • + {{ctx.Locale.Tr "admin.auths.tip.gitea" "https://forgejo.org/docs/latest/user/oauth2-provider"}} +
  • Nextcloud
  • + {{ctx.Locale.Tr "admin.auths.tip.nextcloud"}} +
  • Yandex
  • + {{ctx.Locale.Tr "admin.auths.tip.yandex" "https://oauth.yandex.com/client/new"}} +
  • Mastodon
  • + {{ctx.Locale.Tr "admin.auths.tip.mastodon"}} +
    +
    +
    +{{template "admin/layout_footer" .}} diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl new file mode 100644 index 0000000..6cb6643 --- /dev/null +++ b/templates/admin/auth/source/ldap.tmpl @@ -0,0 +1,145 @@ +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.restricted_filter_helper"}}

    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

    +
    +
    +
    +
    + + +
    +
    +
    diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl new file mode 100644 index 0000000..0560cc8 --- /dev/null +++ b/templates/admin/auth/source/oauth.tmpl @@ -0,0 +1,109 @@ +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

    +
    +
    + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + + {{range .OAuth2Providers}}{{if .CustomURLSettings}} + + + + + + + {{end}}{{end}} + +
    + + +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.oauth2_required_claim_name_helper"}}

    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.oauth2_required_claim_value_helper"}}

    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    diff --git a/templates/admin/auth/source/smtp.tmpl b/templates/admin/auth/source/smtp.tmpl new file mode 100644 index 0000000..31195ac --- /dev/null +++ b/templates/admin/auth/source/smtp.tmpl @@ -0,0 +1,59 @@ +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.force_smtps_helper"}}

    +
    +
    +
    +
    + + +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.helo_hostname_helper"}}

    +
    +
    +
    + + +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.allowed_domains_helper"}}

    +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}

    +
    +
    +
    diff --git a/templates/admin/auth/source/sspi.tmpl b/templates/admin/auth/source/sspi.tmpl new file mode 100644 index 0000000..6a3f00f --- /dev/null +++ b/templates/admin/auth/source/sspi.tmpl @@ -0,0 +1,43 @@ +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.sspi_auto_create_users_helper"}}

    +
    +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.sspi_auto_activate_users_helper"}}

    +
    +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.sspi_strip_domain_names_helper"}}

    +
    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.sspi_separator_replacement_helper"}}

    +
    +
    + + +

    {{ctx.Locale.Tr "admin.auths.sspi_default_language_helper"}}

    +
    +
    -- cgit v1.2.3