summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth
Commit message (Collapse)AuthorAgeFilesLines
* Discord Oauth2 support (#4476)techknowlogick2019-01-131-0/+2
| | | | | | | | | | | | | | * add discord auth * add vendor for discord * fix syntax error * make fmt * update version of goth in use * update markbates/goth
* LDAP via simple auth separate bind user and search base (#5055)Tony Homrich2018-12-272-4/+4
|
* Fix typo (#4151)Barbossa2018-06-061-1/+1
| | | Fix incorrect tmpl in oauth when we have a custom authorize url. The tmpl will append an additional character "v" every time we save the settings.
* LDAP Public SSH Keys synchronization (#1844)Magnus Lindvall2018-05-242-0/+8
| | | | | | | | | | | | | | | | | | | * Add LDAP Key Synchronization feature Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Add migration: add login source id column for public_key table * Only update keys if needed * Add function to only list pubkey synchronized from ldap * Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it. * Only get keys belonging to current login source id * Set default login source id to 0 * Some minor cleanup. Add integration tests (updete dep testify)
* Add option to use paged LDAP search when synchronizing users (#3895)Lauris BH2018-05-052-0/+20
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-2/+2
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* LDAP user synchronization (#1478)Lauris BH2017-05-102-0/+14
|
* Additional OAuth2 providers (#1010)Willem van Dreumel2017-05-013-3/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add google+ * sort signin oauth2 providers based on the name so order is always the same * update auth tip for google+ * add gitlab provider * add bitbucket provider (and some go fmt) * add twitter provider * add facebook provider * add dropbox provider * add openid connect provider incl. new format of tips section in "Add New Source" * lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow) * imports according to goimport and code style * make it possible to set custom urls to gitlab and github provider (only these could have a different host) * split up oauth2 into multiple files * small typo in comment * fix indention * fix indentation * fix new line before external import * fix layout of signin part * update "broken" dependency
* Refactor admin/auth/new.tmpl (#1277)Kim "BKC" Carlbäcker2017-03-174-116/+119
|
* Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)Patrick G2017-03-153-403/+391
|
* Oauth2 consumer (#679)Willem van Dreumel2017-02-222-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* fix grammar + typo. (#3453)Justin Ray Vrooman2016-08-121-2/+2
|
* Use SecurityProtocol to replace UseSSL in LDAP configUnknwon2016-07-082-6/+32
| | | | Initially proposed by #2376 and fixes #3068 as well.
* Minor fix for #2634Unknwon2016-02-201-0/+6
| | | | Add AttributesInBind option in new auth source form.
* LDAP: Fetch attributes in Bind DN context optionAdam Strzelecki2016-02-201-0/+8
| | | | | | | | | This is feature is workaround for #2628 (JumpCloud) and some other services that allow LDAP search only under BindDN user account, but not allow any LDAP search query in logged user DN context. Such approach is an alternative to minimal permissions security pattern for BindDN user.
* LDAP parameters UI: bind_dn and bind_password are not requiredSlavikZ2015-12-092-6/+6
|
* Indent all templates with tabsAdam Strzelecki2015-12-083-341/+341
| | | | | | | | | | | | This commit improves templates readability, since all of them use consistent indent with all template command blocks indented too. 1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks such as {{if}} {{with}} 2. Cleans all trailing white-space 3. Adds trailing last line-break to each file
* LDAP: Optional user name attribute specificationAdam Strzelecki2015-12-022-0/+8
| | | | | | | | | | | | | | | Consider following LDAP search query example: (&(objectClass=Person)(|(uid=%s)(mail=%s))) Right now on first login attempt Gogs will use the text supplied on login form as the newly created user name. In example query above the text matches against both e-mail or user name. So if user puts the e-mail then the new Gogs user name will be e-mail which may be undesired. Using optional user name attribute setting we can explicitly say we want Gogs user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail to login 1st time, the new account will receive correct user name.
* revert simple LDAP userDN and update exampleUnknwon2015-09-162-2/+2
|
* #1637 able to skip verify for LDAPUnknwon2015-09-142-5/+3
|
* #1625 remove auto_register and makes it defaultUnknwon2015-09-122-12/+0
|
* #1620 add allowed domains for SMTP authUnknwon2015-09-112-0/+10
|
* finish new edit auth UIUnknwon2015-09-112-174/+182
|
* finish new add auth UIUnknwon2015-09-102-136/+152
|
* more minor fix on 1581Unknwon2015-09-102-62/+49
|
* Added LDAP simple auth support.Sergio Benitez2015-09-042-16/+29
|
* #1542 A way to skip TLS verify for SMTP authenticationUnknwon2015-08-293-5/+13
|
* able edit issue titleUnknwon2015-08-192-2/+2
|
* Set IsAdmin using LDAPGirish Ramakrishnan2015-08-182-0/+8
| | | | | | | | | The IsAdmin flag is set based on whether the admin filter returned any result. The admin filter is applied with the user dn as the search root. In the future, we should update IsAdmin as well on each login. Alternately, we can have a periodic sync operation.
* Change input field to type=password for the authentication templates.Lydia Sevelt2015-08-182-2/+2
|
* Significantly enhanced LDAP support in Gogs.Sergio Benitez2015-08-122-32/+32
|
* Add PAM authenticationPaolo Borelli2015-04-242-0/+12
|
* #1124 LDAP add and edit form are misleadingUnknwon2015-03-242-14/+26
|
* Fix for deleting user when gogs instalation is on http://hostname/gogsSternik2015-03-131-1/+1
|
* Merge pull request #915 from Lafriks/dev无闻2015-02-231-2/+14
|\ | | | | Get username, name, surname and e-mail from LDAP server
| * Get username, name, surname and e-mail from LDAP serverLauris BH2015-02-081-2/+14
| |
* | Remove the "PHP" style formatting functionPeter Smit2015-02-161-2/+2
|/ | | | | | The "PHP" formatting function doesn't add anything, except an undocumented date format. All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
* Fix #799 by adding a tooltip for all dates in all settings/panelsPeter Smit2015-01-021-2/+2
|
* UI: Confirmation boxUnknwon2014-09-281-1/+8
|
* Add suburl supportUnknwon2014-09-193-7/+7
|
* Allow Gogs to run from a suburl behind a reverse proxy. e.g. ↵Martin van Beurden2014-09-183-7/+7
| | | | | | | | | | | | | | http://mydomain.com/gogs/ Conflicts: modules/setting/setting.go Conflicts: templates/repo/release/list.tmpl templates/user/dashboard/dashboard.tmpl Conflicts: routers/repo/setting.go
* Removed trailing white spacesTristan Storch2014-08-301-1/+1
| | | | | | | | | | Removed trailing whitespaces with ```sh for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done ``` and some handwork.
* Continue working on new admin pagesUnknwon2014-08-293-323/+262
|
* In progress of name template name constantUnknown2014-06-222-0/+343