You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

344 lines
17 KiB

Oauth2 consumer (#679) * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
7 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
  1. {{template "base/head" .}}
  2. <div class="admin edit authentication">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.auths.edit"}}
  8. </h4>
  9. <div class="ui attached segment">
  10. <form class="ui form" action="{{.Link}}" method="post">
  11. {{.CsrfTokenHtml}}
  12. <input type="hidden" name="id" value="{{.Source.ID}}">
  13. <div class="inline field">
  14. <label>{{$.i18n.Tr "admin.auths.auth_type"}}</label>
  15. <input type="hidden" id="auth_type" name="type" value="{{.Source.Type}}">
  16. <span>{{.Source.TypeName}}</span>
  17. </div>
  18. <div class="required inline field {{if .Err_Name}}error{{end}}">
  19. <label for="name">{{.i18n.Tr "admin.auths.auth_name"}}</label>
  20. <input id="name" name="name" value="{{.Source.Name}}" autofocus required>
  21. </div>
  22. <!-- LDAP and DLDAP -->
  23. {{if or .Source.IsLDAP .Source.IsDLDAP}}
  24. {{ $cfg:=.Source.LDAP }}
  25. <div class="inline required field {{if .Err_SecurityProtocol}}error{{end}}">
  26. <label>{{.i18n.Tr "admin.auths.security_protocol"}}</label>
  27. <div class="ui selection security-protocol dropdown">
  28. <input type="hidden" id="security_protocol" name="security_protocol" value="{{$cfg.SecurityProtocol}}">
  29. <div class="text">{{$cfg.SecurityProtocolName}}</div>
  30. <i class="dropdown icon"></i>
  31. <div class="menu">
  32. {{range .SecurityProtocols}}
  33. <div class="item" data-value="{{.Type}}">{{.Name}}</div>
  34. {{end}}
  35. </div>
  36. </div>
  37. </div>
  38. <div class="required field">
  39. <label for="host">{{.i18n.Tr "admin.auths.host"}}</label>
  40. <input id="host" name="host" value="{{$cfg.Host}}" placeholder="e.g. mydomain.com" required>
  41. </div>
  42. <div class="required field">
  43. <label for="port">{{.i18n.Tr "admin.auths.port"}}</label>
  44. <input id="port" name="port" value="{{$cfg.Port}}" placeholder="e.g. 636" required>
  45. </div>
  46. {{if .Source.IsLDAP}}
  47. <div class="field">
  48. <label for="bind_dn">{{.i18n.Tr "admin.auths.bind_dn"}}</label>
  49. <input id="bind_dn" name="bind_dn" value="{{$cfg.BindDN}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com">
  50. </div>
  51. <input class="fake" type="password">
  52. <div class="field">
  53. <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label>
  54. <input id="bind_password" name="bind_password" type="password" value="{{$cfg.BindPassword}}">
  55. <p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p>
  56. </div>
  57. {{end}}
  58. <div class="{{if .Source.IsLDAP}}required{{end}} field">
  59. <label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
  60. <input id="user_base" name="user_base" value="{{$cfg.UserBase}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com" {{if .Source.IsLDAP}}required{{end}}>
  61. </div>
  62. {{if .Source.IsDLDAP}}
  63. <div class="required field">
  64. <label for="user_dn">{{.i18n.Tr "admin.auths.user_dn"}}</label>
  65. <input id="user_dn" name="user_dn" value="{{$cfg.UserDN}}" placeholder="e.g. uid=%s,ou=Users,dc=mydomain,dc=com" required>
  66. </div>
  67. {{end}}
  68. <div class="required field">
  69. <label for="filter">{{.i18n.Tr "admin.auths.filter"}}</label>
  70. <input id="filter" name="filter" value="{{$cfg.Filter}}" placeholder="e.g. (&(objectClass=posixAccount)(uid=%s))" required>
  71. </div>
  72. <div class="field">
  73. <label for="admin_filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label>
  74. <input id="admin_filter" name="admin_filter" value="{{$cfg.AdminFilter}}">
  75. </div>
  76. <div class="field">
  77. <label for="restricted_filter">{{.i18n.Tr "admin.auths.restricted_filter"}}</label>
  78. <input id="restricted_filter" name="restricted_filter" value="{{$cfg.RestrictedFilter}}">
  79. <p class="help">{{.i18n.Tr "admin.auths.restricted_filter_helper"}}</p>
  80. </div>
  81. <div class="field">
  82. <label for="attribute_username">{{.i18n.Tr "admin.auths.attribute_username"}}</label>
  83. <input id="attribute_username" name="attribute_username" value="{{$cfg.AttributeUsername}}" placeholder="{{.i18n.Tr "admin.auths.attribute_username_placeholder"}}">
  84. </div>
  85. <div class="field">
  86. <label for="attribute_name">{{.i18n.Tr "admin.auths.attribute_name"}}</label>
  87. <input id="attribute_name" name="attribute_name" value="{{$cfg.AttributeName}}">
  88. </div>
  89. <div class="field">
  90. <label for="attribute_surname">{{.i18n.Tr "admin.auths.attribute_surname"}}</label>
  91. <input id="attribute_surname" name="attribute_surname" value="{{$cfg.AttributeSurname}}">
  92. </div>
  93. <div class="required field">
  94. <label for="attribute_mail">{{.i18n.Tr "admin.auths.attribute_mail"}}</label>
  95. <input id="attribute_mail" name="attribute_mail" value="{{$cfg.AttributeMail}}" placeholder="e.g. mail" required>
  96. </div>
  97. <div class="field">
  98. <label for="attribute_ssh_public_key">{{.i18n.Tr "admin.auths.attribute_ssh_public_key"}}</label>
  99. <input id="attribute_ssh_public_key" name="attribute_ssh_public_key" value="{{$cfg.AttributeSSHPublicKey}}" placeholder="e.g. SshPublicKey">
  100. </div>
  101. <div class="inline field">
  102. <div class="ui checkbox">
  103. <label for="groups_enabled"><strong>{{.i18n.Tr "admin.auths.verify_group_membership"}}</strong></label>
  104. <input id="groups_enabled" name="groups_enabled" type="checkbox" {{if $cfg.GroupsEnabled}}checked{{end}}>
  105. </div>
  106. </div>
  107. <div id="groups_enabled_change">
  108. <div class="field">
  109. <label for="group_dn">{{.i18n.Tr "admin.auths.group_search_base"}}</label>
  110. <input id="group_dn" name="group_dn" value="{{$cfg.GroupDN}}" placeholder="e.g. ou=group,dc=mydomain,dc=com">
  111. </div>
  112. <div class="field">
  113. <label for="group_filter">{{.i18n.Tr "admin.auths.valid_groups_filter"}}</label>
  114. <input id="group_filter" name="group_filter" value="{{$cfg.GroupFilter}}" placeholder="e.g. (|(cn=gitea_users)(cn=admins))">
  115. </div>
  116. <div class="field">
  117. <label for="group_member_uid">{{.i18n.Tr "admin.auths.group_attribute_list_users"}}</label>
  118. <input id="group_member_uid" name="group_member_uid" value="{{$cfg.GroupMemberUID}}" placeholder="e.g. memberUid">
  119. </div>
  120. <div class="field">
  121. <label for="user_uid">{{.i18n.Tr "admin.auths.user_attribute_in_group"}}</label>
  122. <input id="user_uid" name="user_uid" value="{{$cfg.UserUID}}" placeholder="e.g. uid">
  123. </div>
  124. <br/>
  125. </div>
  126. {{if .Source.IsLDAP}}
  127. <div class="inline field">
  128. <div class="ui checkbox">
  129. <label for="use_paged_search"><strong>{{.i18n.Tr "admin.auths.use_paged_search"}}</strong></label>
  130. <input id="use_paged_search" name="use_paged_search" type="checkbox" {{if $cfg.UsePagedSearch}}checked{{end}}>
  131. </div>
  132. </div>
  133. <div class="field required search-page-size{{if not $cfg.UsePagedSearch}} hide{{end}}">
  134. <label for="search_page_size">{{.i18n.Tr "admin.auths.search_page_size"}}</label>
  135. <input id="search_page_size" name="search_page_size" value="{{if $cfg.UsePagedSearch}}{{$cfg.SearchPageSize}}{{end}}">
  136. </div>
  137. <div class="inline field">
  138. <div class="ui checkbox">
  139. <label><strong>{{.i18n.Tr "admin.auths.attributes_in_bind"}}</strong></label>
  140. <input name="attributes_in_bind" type="checkbox" {{if $cfg.AttributesInBind}}checked{{end}}>
  141. </div>
  142. </div>
  143. {{end}}
  144. <div class="inline field">
  145. <div class="ui checkbox">
  146. <label for="allow_deactivate_all"><strong>{{.i18n.Tr "admin.auths.allow_deactivate_all"}}</strong></label>
  147. <input id="allow_deactivate_all" name="allow_deactivate_all" type="checkbox" {{if $cfg.AllowDeactivateAll}}checked{{end}}>
  148. </div>
  149. </div>
  150. {{end}}
  151. <!-- SMTP -->
  152. {{if .Source.IsSMTP}}
  153. {{ $cfg:=.Source.SMTP }}
  154. <div class="inline required field">
  155. <label>{{.i18n.Tr "admin.auths.smtp_auth"}}</label>
  156. <div class="ui selection type dropdown">
  157. <input type="hidden" id="smtp_auth" name="smtp_auth" value="{{$cfg.Auth}}" required>
  158. <div class="text">{{$cfg.Auth}}</div>
  159. <i class="dropdown icon"></i>
  160. <div class="menu">
  161. {{range .SMTPAuths}}
  162. <div class="item" data-value="{{.}}">{{.}}</div>
  163. {{end}}
  164. </div>
  165. </div>
  166. </div>
  167. <div class="required field">
  168. <label for="smtp_host">{{.i18n.Tr "admin.auths.smtphost"}}</label>
  169. <input id="smtp_host" name="smtp_host" value="{{$cfg.Host}}" required>
  170. </div>
  171. <div class="required field">
  172. <label for="smtp_port">{{.i18n.Tr "admin.auths.smtpport"}}</label>
  173. <input id="smtp_port" name="smtp_port" value="{{$cfg.Port}}" required>
  174. </div>
  175. <div class="field">
  176. <label for="allowed_domains">{{.i18n.Tr "admin.auths.allowed_domains"}}</label>
  177. <input id="allowed_domains" name="allowed_domains" value="{{$cfg.AllowedDomains}}">
  178. <p class="help">{{.i18n.Tr "admin.auths.allowed_domains_helper"}}</p>
  179. </div>
  180. {{end}}
  181. <!-- PAM -->
  182. {{if .Source.IsPAM}}
  183. {{ $cfg:=.Source.PAM }}
  184. <div class="required field">
  185. <label for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label>
  186. <input id="pam_service_name" name="pam_service_name" value="{{$cfg.ServiceName}}" required>
  187. </div>
  188. {{end}}
  189. <!-- OAuth2 -->
  190. {{if .Source.IsOAuth2}}
  191. {{ $cfg:=.Source.OAuth2 }}
  192. <div class="inline required field">
  193. <label>{{.i18n.Tr "admin.auths.oauth2_provider"}}</label>
  194. <div class="ui selection type dropdown">
  195. <input type="hidden" id="oauth2_provider" name="oauth2_provider" value="{{$cfg.Provider}}" required>
  196. <div class="text">{{.CurrentOAuth2Provider.DisplayName}}</div>
  197. <i class="dropdown icon"></i>
  198. <div class="menu">
  199. {{range $key, $value := .OAuth2Providers}}
  200. <div class="item" data-value="{{$key}}">{{$value.DisplayName}}</div>
  201. {{end}}
  202. </div>
  203. </div>
  204. </div>
  205. <div class="required field">
  206. <label for="oauth2_key">{{.i18n.Tr "admin.auths.oauth2_clientID"}}</label>
  207. <input id="oauth2_key" name="oauth2_key" value="{{$cfg.ClientID}}" required>
  208. </div>
  209. <div class="required field">
  210. <label for="oauth2_secret">{{.i18n.Tr "admin.auths.oauth2_clientSecret"}}</label>
  211. <input id="oauth2_secret" name="oauth2_secret" value="{{$cfg.ClientSecret}}" required>
  212. </div>
  213. <div class="open_id_connect_auto_discovery_url required field">
  214. <label for="open_id_connect_auto_discovery_url">{{.i18n.Tr "admin.auths.openIdConnectAutoDiscoveryURL"}}</label>
  215. <input id="open_id_connect_auto_discovery_url" name="open_id_connect_auto_discovery_url" value="{{$cfg.OpenIDConnectAutoDiscoveryURL}}">
  216. </div>
  217. <div class="oauth2_use_custom_url inline field">
  218. <div class="ui checkbox">
  219. <label><strong>{{.i18n.Tr "admin.auths.oauth2_use_custom_url"}}</strong></label>
  220. <input id="oauth2_use_custom_url" name="oauth2_use_custom_url" type="checkbox" {{if $cfg.CustomURLMapping}}checked{{end}}>
  221. </div>
  222. </div>
  223. <div class="oauth2_use_custom_url_field oauth2_auth_url required field">
  224. <label for="oauth2_auth_url">{{.i18n.Tr "admin.auths.oauth2_authURL"}}</label>
  225. <input id="oauth2_auth_url" name="oauth2_auth_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.AuthURL}}{{end}}">
  226. </div>
  227. <div class="oauth2_use_custom_url_field oauth2_token_url required field">
  228. <label for="oauth2_token_url">{{.i18n.Tr "admin.auths.oauth2_tokenURL"}}</label>
  229. <input id="oauth2_token_url" name="oauth2_token_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.TokenURL}}{{end}}">
  230. </div>
  231. <div class="oauth2_use_custom_url_field oauth2_profile_url required field">
  232. <label for="oauth2_profile_url">{{.i18n.Tr "admin.auths.oauth2_profileURL"}}</label>
  233. <input id="oauth2_profile_url" name="oauth2_profile_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.ProfileURL}}{{end}}">
  234. </div>
  235. <div class="oauth2_use_custom_url_field oauth2_email_url required field">
  236. <label for="oauth2_email_url">{{.i18n.Tr "admin.auths.oauth2_emailURL"}}</label>
  237. <input id="oauth2_email_url" name="oauth2_email_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.EmailURL}}{{end}}">
  238. </div>
  239. {{if .OAuth2DefaultCustomURLMappings}}{{range $key, $value := .OAuth2DefaultCustomURLMappings}}
  240. <input id="{{$key}}_token_url" value="{{$value.TokenURL}}" type="hidden" />
  241. <input id="{{$key}}_auth_url" value="{{$value.AuthURL}}" type="hidden" />
  242. <input id="{{$key}}_profile_url" value="{{$value.ProfileURL}}" type="hidden" />
  243. <input id="{{$key}}_email_url" value="{{$value.EmailURL}}" type="hidden" />
  244. {{end}}{{end}}
  245. {{end}}
  246. <!-- SSPI -->
  247. {{if .Source.IsSSPI}}
  248. {{ $cfg:=.Source.SSPI }}
  249. <div class="field">
  250. <div class="ui checkbox">
  251. <label for="sspi_auto_create_users"><strong>{{.i18n.Tr "admin.auths.sspi_auto_create_users"}}</strong></label>
  252. <input id="sspi_auto_create_users" name="sspi_auto_create_users" class="sspi-auto-create-users" type="checkbox" {{if $cfg.AutoCreateUsers}}checked{{end}}>
  253. <p class="help">{{.i18n.Tr "admin.auths.sspi_auto_create_users_helper"}}</p>
  254. </div>
  255. </div>
  256. <div class="field">
  257. <div class="ui checkbox">
  258. <label for="sspi_auto_activate_users"><strong>{{.i18n.Tr "admin.auths.sspi_auto_activate_users"}}</strong></label>
  259. <input id="sspi_auto_activate_users" name="sspi_auto_activate_users" class="sspi-auto-activate-users" type="checkbox" {{if $cfg.AutoActivateUsers}}checked{{end}}>
  260. <p class="help">{{.i18n.Tr "admin.auths.sspi_auto_activate_users_helper"}}</p>
  261. </div>
  262. </div>
  263. <div class="field">
  264. <div class="ui checkbox">
  265. <label for="sspi_strip_domain_names"><strong>{{.i18n.Tr "admin.auths.sspi_strip_domain_names"}}</strong></label>
  266. <input id="sspi_strip_domain_names" name="sspi_strip_domain_names" class="sspi-strip-domain-names" type="checkbox" {{if $cfg.StripDomainNames}}checked{{end}}>
  267. <p class="help">{{.i18n.Tr "admin.auths.sspi_strip_domain_names_helper"}}</p>
  268. </div>
  269. </div>
  270. <div class="required field">
  271. <label for="sspi_separator_replacement">{{.i18n.Tr "admin.auths.sspi_separator_replacement"}}</label>
  272. <input id="sspi_separator_replacement" name="sspi_separator_replacement" value="{{$cfg.SeparatorReplacement}}" required>
  273. <p class="help">{{.i18n.Tr "admin.auths.sspi_separator_replacement_helper"}}</p>
  274. </div>
  275. <div class="field">
  276. <label for="sspi_default_language">{{.i18n.Tr "admin.auths.sspi_default_language"}}</label>
  277. <div class="ui language selection dropdown" id="sspi_default_language">
  278. <input name="sspi_default_language" type="hidden" value="{{$cfg.DefaultLanguage}}">
  279. <i class="dropdown icon"></i>
  280. <div class="text">{{range .AllLangs}}{{if eq $cfg.DefaultLanguage .Lang}}{{.Name}}{{end}}{{end}}</div>
  281. <div class="menu">
  282. <div class="item{{if not $.SSPIDefaultLanguage}} active selected{{end}}" data-value="">-</div>
  283. {{range .AllLangs}}
  284. <div class="item{{if eq $cfg.DefaultLanguage .Lang}} active selected{{end}}" data-value="{{.Lang}}">{{.Name}}</div>
  285. {{end}}
  286. </div>
  287. </div>
  288. <p class="help">{{.i18n.Tr "admin.auths.sspi_default_language_helper"}}</p>
  289. </div>
  290. {{end}}
  291. <div class="inline field {{if not .Source.IsSMTP}}hide{{end}}">
  292. <div class="ui checkbox">
  293. <label><strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong></label>
  294. <input name="tls" type="checkbox" {{if .Source.UseTLS}}checked{{end}}>
  295. </div>
  296. </div>
  297. <div class="has-tls inline field {{if not .HasTLS}}hide{{end}}">
  298. <div class="ui checkbox">
  299. <label><strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong></label>
  300. <input name="skip_verify" type="checkbox" {{if .Source.SkipVerify}}checked{{end}}>
  301. </div>
  302. </div>
  303. {{if .Source.IsLDAP}}
  304. <div class="inline field">
  305. <div class="ui checkbox">
  306. <label><strong>{{.i18n.Tr "admin.auths.syncenabled"}}</strong></label>
  307. <input name="is_sync_enabled" type="checkbox" {{if .Source.IsSyncEnabled}}checked{{end}}>
  308. </div>
  309. </div>
  310. {{end}}
  311. <div class="inline field">
  312. <div class="ui checkbox">
  313. <label><strong>{{.i18n.Tr "admin.auths.activated"}}</strong></label>
  314. <input name="is_active" type="checkbox" {{if .Source.IsActived}}checked{{end}}>
  315. </div>
  316. </div>
  317. <div class="field">
  318. <button class="ui green button">{{.i18n.Tr "admin.auths.update"}}</button>
  319. <div class="ui red button delete-button" data-url="{{$.Link}}/delete" data-id="{{.Source.ID}}">{{.i18n.Tr "admin.auths.delete"}}</div>
  320. </div>
  321. </form>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="ui small basic delete modal">
  326. <div class="ui icon header">
  327. <i class="trash icon"></i>
  328. {{.i18n.Tr "admin.auths.delete_auth_title"}}
  329. </div>
  330. <div class="content">
  331. <p>{{.i18n.Tr "admin.auths.delete_auth_desc"}}</p>
  332. </div>
  333. {{template "base/delete_modal_actions" .}}
  334. </div>
  335. {{template "base/footer" .}}