bench-forgejo/templates/admin
QuaSoft 7b4d2f7a2a 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
2019-11-23 01:33:31 +02:00
..
auth Add single sign-on support via SSPI on Windows (#8463) 2019-11-23 01:33:31 +02:00
base Added repository search ordered by stars or forks. Forks column in admin repo list. (#3969) 2018-05-24 09:03:42 +08:00
org Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
repo Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
user Fix new user form for non-local users (#8826) 2019-11-04 21:10:37 +02:00
config.tmpl [Branch View] show "New Pull Request" Button only if posible (#7977) 2019-08-26 13:47:41 +03:00
dashboard.tmpl Repository avatar fallback configuration (#7087) 2019-06-02 14:40:12 +08:00
hook_new.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
hooks.tmpl Implement Default Webhooks (#4299) 2019-03-18 22:33:20 -04:00
monitor.tmpl undo #3142 because processes don't use the util.Timestamp (#4203) 2018-06-10 09:48:45 +08:00
nav.tmpl Implement Default Webhooks (#4299) 2019-03-18 22:33:20 -04:00
navbar.tmpl Implement Default Webhooks (#4299) 2019-03-18 22:33:20 -04:00
notice.tmpl fix template error (#6737) 2019-04-24 21:14:36 +08:00