Commit graph

94 commits

Author SHA1 Message Date
Ulrich Schreiner
ae236a3d4d reworked to have two distinct REST handlers 2015-02-05 15:27:26 +01:00
Ulrich Schreiner
05b6dad81e Merge branch 'master' into delrepo 2015-02-05 14:47:35 +01:00
Ulrich Schreiner
bd8fb51c2a rework to delete the repository from the datastore if there are previous errors from the remote 2015-02-05 13:13:17 +01:00
Brad Rydzewski
64aeeff3ae Merge pull request #856 from Bugagazavr/gitlab-ouath
Refresh only expired tokens
2015-02-04 22:11:14 -08:00
Ulrich Schreiner
347aa24785 remove Printf output and do a real removal of the repository in the datastore 2015-02-04 15:13:23 +01:00
Ulrich Schreiner
0ed7ae7e3f impelement a delete of a repository 2015-02-04 14:42:24 +01: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
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Brad Rydzewski
c8ac57c2ba Merge pull request #827 from bradrydzewski/master
partial fix for issue #812
2015-01-16 22:17:23 -08:00
Brad Rydzewski
b8b01c2db4 partial fix for issue #812 2015-01-16 22:11:36 -08: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
Scott Ferguson
44518e2015 Wall feed 2014-11-11 10:02:18 -06:00
Brad Rydzewski
8d5ac0004f CC should return not fount 404 2014-11-01 11:58:56 -07:00
Brad Rydzewski
20dfd3d70b Merge pull request #647 from rkusa/badge-style
add flat and flat-square badge styles
2014-11-01 11:55:56 -07:00
Brad Rydzewski
f3eb93ca18 Merge remote-tracking branch 'upstream/master' 2014-10-31 20:06:13 -07:00
Brad Rydzewski
27557988f8 added logging to page when adding / removing repos 2014-10-31 20:00:58 -07:00
Markus Ast
399ac68356 add flat and flat-square badge styles 2014-10-30 21:45:57 +01:00
rkusa
db06a6cc83 fix badge branch selection 2014-10-29 12:20:32 +01:00
Kirill Zaitsev
eef53530c1 Allow sync manually, instead force sync at ever login 2014-10-28 19:51:54 +03:00
Brad Rydzewski
4f30e1388c only generate repo token or key if not exists 2014-10-22 01:02:14 -07:00
Brad Rydzewski
601e3e6d48 slightly altered the URL token format 2014-10-22 00:41:25 -07:00
Brad Rydzewski
7009778176 added token to post-commit hooks 2014-10-22 00:13:47 -07:00
Brad Rydzewski
fba952696d adding logging to WS layer until it is more stable 2014-10-16 21:45:21 -07: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
629547813c modified parameter injection strategy. see #538 2014-10-12 13:02:53 -07:00
Brad Rydzewski
839b578228 removed User checks from handler because middlware has our back 2014-10-09 20:26:32 -07:00
Brad Rydzewski
598c553c3f badge content-type was in wrong function 2014-10-09 20:26:03 -07:00
Brad Rydzewski
17d773fac0 ability to add and remove workers 2014-10-08 21:55:53 -07:00
Brad Rydzewski
33721e54aa endpoint to post a new worker to the pool 2014-10-08 21:44:43 -07:00
Brad Rydzewski
962aa8e968 fixed issue with Role not being returned when getting repo 2014-10-08 21:28:06 -07:00
Brad Rydzewski
bb218a6268 Merge remote-tracking branch 'origin/exp' into exp 2014-10-08 20:59:07 -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
Vsevolod Strukchinsky
b854911d23 Add image/svg+xml content-type to badge handler 2014-10-08 16:59:49 +06:00
Brad Rydzewski
8c80f179bd fixed incorrect url prefix /v1 2014-10-07 07:57:01 -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
58f287a541 added worker handlers 2014-09-29 21:34:30 -07:00
Brad Rydzewski
99fef2b4ea initial work to get websocket handlers working 2014-09-28 23:18:52 -07:00
Brad Rydzewski
565277bd00 more work on worker integration 2014-09-28 20:21:02 -07:00
Brad Rydzewski
21f9aec808 added new handlers and workers 2014-09-28 18:36:24 -07:00
Brad Rydzewski
9a3f33b9c3 removed remote & server database func now that we are using conf files 2014-09-24 21:45:30 -07:00
Brad Rydzewski
97b3b96790 removed ping method that was for testing only 2014-09-23 20:47:27 -07:00
Brad Rydzewski
96e660381f ability to update a repo's public / private key via the REST API 2014-09-06 12:45:27 -07:00
Brad Rydzewski
2448c34c6b added default 1 hour default timeout for projects 2014-09-06 11:10:00 -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