Commit graph

30 commits

Author SHA1 Message Date
Brad Rydzewski
64aeeff3ae Merge pull request #856 from Bugagazavr/gitlab-ouath
Refresh only expired tokens
2015-02-04 22:11:14 -08:00
Kirill Zaitsev
6ca94970d6 Refresh only expired tokens 2015-02-04 13:18:46 +03:00
Kirill Zaitsev
a354aabbb0 Response as JSON instead plain text 2015-02-01 14:12:32 +03:00
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Brad Rydzewski
d0b722cc8b Insert and Update Users instead of generic Save function. Check ID != 0 2015-01-13 21:57:02 -08:00
Kirill Zaitsev
eef53530c1 Allow sync manually, instead force sync at ever login 2014-10-28 19:51:54 +03:00
Brad Rydzewski
a2dadfd6a6 added log message when user attempts to login but registration closed 2014-10-13 21:30:12 -07:00
Brad Rydzewski
7a0a2235b9 added logging to handler to identify errors 2014-10-08 20:57:57 -07:00
Brad Rydzewski
beb009388c added error messaging to login for debug purposes 2014-10-08 20:56:52 -07:00
Brad Rydzewski
0f36aaa463 fixed permission insert to use upsert for improved sync 2014-10-05 19:57:33 -07:00
Brad Rydzewski
5f950d21c4 hooked up jwt token in angular 2014-09-30 00:43:50 -07:00
Brad Rydzewski
21f9aec808 added new handlers and workers 2014-09-28 18:36:24 -07:00
Brad Rydzewski
446fb04d49 added registration.open to the configuration 2014-09-04 20:53:32 -07:00
Brad Rydzewski
eddc11130a added POST handler for gitlab login 2014-09-03 01:12:03 -07:00
Brad Rydzewski
38379992bf refactored plugin/remote and adapted @bugBugagazavr Gitlab code 2014-09-02 00:18:17 -07:00
Brad Rydzewski
71dfaa40fb for now, always load from cache on login. Improve logic later 2014-08-31 10:18:09 -07:00
Brad Rydzewski
dcdb1605b0 fixed issue where not correctly adding perm for existing repo 2014-08-11 23:15:38 -07:00
Brad Rydzewski
52e5ffaee5 fixed minor sync error where members were not granted access 2014-08-07 21:33:04 -07:00
Brad Rydzewski
aa9a8f4878 integrated plugin model for remotes 2014-07-12 19:01:58 -07:00
Brad Rydzewski
b9b79b7994 added flag to indicate account is currently syncing 2014-07-11 13:45:32 -07:00
Brad Rydzewski
491b0e9eee setup sync screen 2014-07-09 22:24:06 -07:00
Brad Rydzewski
ab0a306cbc removed parent_id from user table since not being used 2014-07-09 18:39:31 -07:00
Brad Rydzewski
6b9ae21c7a added pages to add / edit / delete users from the system 2014-07-09 14:25:11 -07:00
Brad Rydzewski
83577a7d5d removed css files. designers will be providing
removed amber files. replacing with angular
removed queue package in favor or worker package
removed channel package in favor of pubsub package
2014-06-21 14:22:38 -07:00
Brad Rydzewski
d64bcdb51d Get Config Data via ConfigManager 2014-06-12 17:17:59 -07:00
Brad Rydzewski
36b01512c0 Refactored to use Model and Database folders 2014-06-12 16:41:04 -07:00
Brad
4abc7bf81e added code to prevent user self-registration 2014-06-09 14:32:00 -07:00
Brad
289312b678 persisting repository hostname to database 2014-06-05 16:02:54 -07:00
Brad
d84b1ac3e4 altered repo to track repo hostname (ie github.com) and multiple clone urls 2014-06-05 15:04:59 -07:00
Brad
ce44ddfeca pushing my local branch 2014-06-04 14:25:38 -07:00