ᴜɴᴋɴᴡᴏɴ
3af91d7cfd
auth: decouple types and functions from db ( #6320 )
2020-09-20 11:19:02 +08:00
ᴜɴᴋɴᴡᴏɴ
41f56ad05d
login_source: migrate to GORM and add tests ( #6090 )
...
* Use GORM in all write paths
* Migrate to GORM
* Fix lint errors
* Use GORM to init table
* dbutil: make writer detect error
* Add more tests
* Rename to clearTables
* db: finish adding tests
* osutil: add tests
* Fix load source files path
2020-04-11 20:18:05 +08:00
Unknwon
657ea2686f
auth: coding style and glitches fixes for GitHub login source ( #5340 )
2018-12-18 16:46:50 -05:00
haixunlu
311df9c521
auth: add new authentication source: GitHub, including GitHub Enterprise ( #5340 )
...
* Add new Authentication Source: GitHub, including GitHub Enterprise.
* Add vendor dependencies.
2018-12-18 15:49:30 -05:00
haixunlu
68a6579852
login_source: add default authentication switch ( #5338 )
...
* Add default Authentication Switch.
* adjust the code accroding to reviews
* #1 . Remove redudant logic.
#2 , Fix a bug in "Edit" panel.
* Remove unused logic
* Fix local authentication files are not flushed.
* refactor according to review.
2018-09-13 13:49:07 -04:00
rokuu
c68fc4f31a
templates: fixes broken UI under supported resolution (1024x768) #5179 ( #5182 )
...
* Update view_list.tmpl
* Update commits_table.tmpl
* Update dashboard.tmpl
* Update list.tmpl
* Update list.tmpl
* Update list.tmpl
* Update list.tmpl
* Update notice.tmpl
* Update monitor.tmpl
* Update view_file.tmpl
* Update diff_preview.tmpl
* Update box.tmpl
2018-04-24 09:54:22 -04:00
Unknwon
f2ecfdc96a
auth: support authentication source config file ( #3142 )
2018-04-12 09:55:58 -04:00
Unknwon
717d409b72
templates/admin/auth/list: rename list title
2018-04-11 19:39:17 -04:00
Unknwon
6e207c823e
templates/admin/auth/list: move "new" button to table foot
2018-04-11 19:38:52 -04:00
Unknwon
6f04ee879c
auth/ldap: allow placeholder %s for BindDN ( #2526 )
2017-11-16 19:32:33 -05:00
Unknwon
a1d411a018
ldap: minor fix for PR #4398
2017-05-29 23:18:34 -04:00
aboron
dbb7e5464b
ldap: add check for group membership ( #4398 )
...
* Add standard LDAP group membership checking.
* Fix formatting, typo, grammer, and syntax errors
* Debugging done.
Gave up on locale file edits.
2017-05-29 22:33:50 -04:00
Unknwon
90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
2017-04-06 17:27:57 -04:00
Unknwon
2c404daca6
pkg/context: rename {CsrfToken, CsrfTokenHtml} -> {CSRFToken, CSRFTokenHTML}
2017-04-06 17:20:38 -04:00
Justin Ray Vrooman
f1a5a4277d
fix grammar + typo. ( #3453 )
2016-08-12 17:06:07 -07:00
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
...
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
acf094fb07
Minor fix for #2634
...
Add AttributesInBind option in new auth source form.
2016-02-20 14:56:27 -05:00
Adam Strzelecki
834d92a47b
LDAP: Fetch attributes in Bind DN context option
...
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.
2016-02-20 14:12:32 +01:00
SlavikZ
a19aaa439d
LDAP parameters UI: bind_dn and bind_password are not required
2015-12-09 21:02:19 +02:00
Adam Strzelecki
da2585c11e
Indent all templates with tabs
...
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
2015-12-08 00:57:46 +01:00
Adam Strzelecki
573305f3d3
LDAP: Optional user name attribute specification
...
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.
2015-12-02 00:20:14 +01:00
Unknwon
6a1907d994
revert simple LDAP userDN and update example
2015-09-16 12:15:14 -04:00
Unknwon
f5c7f22cc8
#1637 able to skip verify for LDAP
2015-09-14 15:48:51 -04:00
Unknwon
cd37fccdfb
#1625 remove auto_register and makes it default
2015-09-12 20:58:51 -04:00
Unknwon
362d64df04
#1620 add allowed domains for SMTP auth
2015-09-11 13:32:33 -04:00
Unknwon
121a81a2c5
finish new edit auth UI
2015-09-11 12:03:08 -04:00
Unknwon
0617448282
finish new add auth UI
2015-09-10 17:11:41 -04:00
Unknwon
fa728d8dff
more minor fix on 1581
2015-09-10 15:45:03 -04:00
Sergio Benitez
2d1db4bf05
Added LDAP simple auth support.
2015-09-04 20:48:34 -07:00
Unknwon
ea454c21f7
#1542 A way to skip TLS verify for SMTP authentication
2015-08-29 15:45:58 +08:00
Unknwon
87f5ca8e1f
able edit issue title
2015-08-19 23:14:57 +08:00
Girish Ramakrishnan
24d7a86a8d
Set IsAdmin using LDAP
...
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.
2015-08-18 23:49:12 -07:00
Lydia Sevelt
bfa8ef68a6
Change input field to type=password for the authentication templates.
2015-08-18 13:56:36 -04:00
Sergio Benitez
7d84d4a8f0
Significantly enhanced LDAP support in Gogs.
2015-08-12 17:01:22 -07:00
Paolo Borelli
182003aa41
Add PAM authentication
2015-04-24 10:13:01 +02:00
Unknwon
211596f407
#1124 LDAP add and edit form are misleading
2015-03-24 19:04:16 -04:00
Sternik
d0e34c57cc
Fix for deleting user when gogs instalation is on http://hostname/gogs
2015-03-13 20:17:20 +01:00
无闻
cd8b43d984
Merge pull request #915 from Lafriks/dev
...
Get username, name, surname and e-mail from LDAP server
2015-02-23 13:41:29 -05:00
Peter Smit
7759b9ee6e
Remove the "PHP" style formatting function
...
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.
2015-02-16 14:44:27 +02:00
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
2015-02-08 01:49:51 +02:00
Peter Smit
fd70f9ec1b
Fix #799 by adding a tooltip for all dates in all settings/panels
2015-01-02 12:41:05 +02:00
Unknwon
49193bebd2
UI: Confirmation box
2014-09-28 01:38:25 -04:00
Unknwon
7ba9257a7f
Add suburl support
2014-09-19 20:11:34 -04:00
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. 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
2014-09-18 20:50:48 +02:00
Tristan Storch
69e332f432
Removed trailing white spaces
...
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.
2014-08-30 15:12:53 +02:00
Unknwon
d2aff9a46a
Continue working on new admin pages
2014-08-29 20:50:43 +08:00
Unknown
9924e65ca1
In progress of name template name constant
2014-06-22 13:14:03 -04:00