2015-09-11 02:41:41 +05:30
|
|
|
{{template "base/head" .}}
|
2023-02-02 04:26:10 +05:30
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content admin new authentication">
|
2017-03-16 04:09:38 +05:30
|
|
|
{{template "admin/navbar" .}}
|
2015-12-08 04:00:52 +05:30
|
|
|
<div class="ui container">
|
2017-03-16 04:09:38 +05:30
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "admin.auths.new"}}
|
2017-03-16 04:09:38 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
2021-10-19 03:38:41 +05:30
|
|
|
{{template "base/disable_form_autofill"}}
|
2017-03-16 04:09:38 +05:30
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<!-- Types and name -->
|
|
|
|
<div class="inline required field {{if .Err_Type}}error{{end}}">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label>{{.locale.Tr "admin.auths.auth_type"}}</label>
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="ui selection type dropdown">
|
2022-03-11 04:10:43 +05:30
|
|
|
<input type="hidden" id="auth_type" name="type" value="{{.type}}">
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="text">{{.CurrentTypeName}}</div>
|
2020-11-01 03:45:11 +05:30
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="menu">
|
|
|
|
{{range .AuthSources}}
|
2021-07-25 12:39:52 +05:30
|
|
|
<div class="item" data-value="{{.Type.Int}}">{{.Name}}</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="required inline field {{if .Err_Name}}error{{end}}">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label for="name">{{.locale.Tr "admin.auths.auth_name"}}</label>
|
2017-03-16 04:09:38 +05:30
|
|
|
<input id="name" name="name" value="{{.name}}" autofocus required>
|
|
|
|
</div>
|
2015-09-11 02:41:41 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<!-- LDAP and DLDAP -->
|
2022-08-31 21:28:54 +05:30
|
|
|
{{template "admin/auth/source/ldap" .}}
|
2015-09-11 02:41:41 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<!-- SMTP -->
|
2022-08-31 21:28:54 +05:30
|
|
|
{{template "admin/auth/source/smtp" .}}
|
2015-09-11 02:41:41 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<!-- PAM -->
|
2023-02-19 09:36:14 +05:30
|
|
|
<div class="pam required field {{if not (eq .type 4)}}gt-hidden{{end}}">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label for="pam_service_name">{{.locale.Tr "admin.auths.pam_service_name"}}</label>
|
2023-03-27 21:35:51 +05:30
|
|
|
<input id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label for="pam_email_domain">{{.locale.Tr "admin.auths.pam_email_domain"}}</label>
|
2021-05-14 03:41:47 +05:30
|
|
|
<input id="pam_email_domain" name="pam_email_domain" value="{{.pam_email_domain}}">
|
2017-03-16 04:09:38 +05:30
|
|
|
</div>
|
2023-02-19 09:36:14 +05:30
|
|
|
<div class="pam optional field {{if not (eq .type 4)}}gt-hidden{{end}}">
|
2021-09-27 06:32:01 +05:30
|
|
|
<div class="ui checkbox">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label for="skip_local_two_fa"><strong>{{.locale.Tr "admin.auths.skip_local_two_fa"}}</strong></label>
|
2021-09-27 06:32:01 +05:30
|
|
|
<input id="skip_local_two_fa" name="skip_local_two_fa" type="checkbox" {{if .skip_local_two_fa}}checked{{end}}>
|
2022-06-28 02:28:46 +05:30
|
|
|
<p class="help">{{.locale.Tr "admin.auths.skip_local_two_fa_helper"}}</p>
|
2021-09-27 06:32:01 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-22 12:44:37 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<!-- OAuth2 -->
|
2022-08-31 21:28:54 +05:30
|
|
|
{{template "admin/auth/source/oauth" .}}
|
2015-09-11 02:41:41 +05:30
|
|
|
|
2019-11-23 05:03:31 +05:30
|
|
|
<!-- SSPI -->
|
2022-08-31 21:28:54 +05:30
|
|
|
{{template "admin/auth/source/sspi" .}}
|
2019-11-23 05:03:31 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="ldap field">
|
|
|
|
<div class="ui checkbox">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label><strong>{{.locale.Tr "admin.auths.attributes_in_bind"}}</strong></label>
|
2017-03-16 04:09:38 +05:30
|
|
|
<input name="attributes_in_bind" type="checkbox" {{if .attributes_in_bind}}checked{{end}}>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-02-19 09:36:14 +05:30
|
|
|
<div class="ldap inline field {{if not (eq .type 2)}}gt-hidden{{end}}">
|
2017-05-10 18:40:18 +05:30
|
|
|
<div class="ui checkbox">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label><strong>{{.locale.Tr "admin.auths.syncenabled"}}</strong></label>
|
2017-05-10 18:40:18 +05:30
|
|
|
<input name="is_sync_enabled" type="checkbox" {{if .is_sync_enabled}}checked{{end}}>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox">
|
2022-06-28 02:28:46 +05:30
|
|
|
<label><strong>{{.locale.Tr "admin.auths.activated"}}</strong></label>
|
2017-03-16 04:09:38 +05:30
|
|
|
<input name="is_active" type="checkbox" {{if .is_active}}checked{{end}}>
|
|
|
|
</div>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2015-09-11 02:41:41 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<div class="field">
|
2022-06-28 02:28:46 +05:30
|
|
|
<button class="ui green button">{{.locale.Tr "admin.auths.new"}}</button>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4 class="ui top attached header">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "admin.auths.tips"}}
|
2017-03-16 04:09:38 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<h5>GMail Settings:</h5>
|
|
|
|
<p>Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true</p>
|
2017-05-01 18:56:53 +05:30
|
|
|
|
2022-06-28 02:28:46 +05:30
|
|
|
<h5>{{.locale.Tr "admin.auths.tips.oauth2.general"}}:</h5>
|
|
|
|
<p>{{.locale.Tr "admin.auths.tips.oauth2.general.tip"}}</p>
|
2017-05-01 18:56:53 +05:30
|
|
|
|
2022-06-28 02:28:46 +05:30
|
|
|
<h5 class="ui top attached header">{{.locale.Tr "admin.auths.tip.oauth2_provider"}}</h5>
|
2017-05-01 18:56:53 +05:30
|
|
|
<div class="ui attached segment">
|
|
|
|
<li>Bitbucket</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.bitbucket"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>Dropbox</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.dropbox"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>Facebook</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.facebook"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>GitHub</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.github"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>GitLab</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.gitlab"}}</span>
|
2019-09-14 15:32:39 +05:30
|
|
|
<li>Google</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.google_plus"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>OpenID Connect</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.openid_connect"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
<li>Twitter</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.twitter"}}</span>
|
2019-01-14 00:36:22 +05:30
|
|
|
<li>Discord</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.discord"}}</span>
|
2019-09-13 07:45:36 +05:30
|
|
|
<li>Gitea</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.gitea"}}</span>
|
2020-03-03 08:41:45 +05:30
|
|
|
<li>Nextcloud</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.nextcloud"}}</span>
|
2020-03-05 03:38:52 +05:30
|
|
|
<li>Yandex</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.yandex"}}</span>
|
2021-04-11 09:16:37 +05:30
|
|
|
<li>Mastodon</li>
|
2022-06-28 02:28:46 +05:30
|
|
|
<span>{{.locale.Tr "admin.auths.tip.mastodon"}}</span>
|
2017-05-01 18:56:53 +05:30
|
|
|
</div>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2014-05-03 08:18:14 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-11 02:41:41 +05:30
|
|
|
{{template "base/footer" .}}
|