Commit graph

267 commits

Author SHA1 Message Date
Alex Edwards
f6361f67fe fixed -db-url flag as it now requires two dashes --db-url 2016-01-26 17:18:52 -08:00
Eric Chiang
a3f26be501 Merge pull request #289 from ericchiang/godeps
Documentation: add section about using godeps
2016-01-25 20:38:52 -08:00
Eric Chiang
75a5362d46 Documentation: add section about using godeps 2016-01-25 20:17:34 -08:00
Eric Chiang
26fa124efd Merge pull request #288 from fnordahl/change-to-status-found
Change status code used for redirects from StatusTemporaryRedirect (3…
2016-01-23 16:46:32 -08:00
Frode Nordahl
5d284e08ae Change status code used for redirects from StatusTemporaryRedirect (307) to StatusFound (302)
HTTP code 307 aka. StatusTemporaryRedirect is used throughout the
project. However, the endpoints redirected to explicitly expects
the client to make a GET request.

If a HTTP client issues a POST request to a server and receives a
HTTP 307 redirect, it forwards the POST request to the new URL.

When using 302 the HTTP client will issue a GET request.

Fixes #287
2016-01-23 22:33:53 +01:00
bobbyrullo
789d9a68cc Merge pull request #282 from ericchiang/fix_token_test
server: fix reset password test
2016-01-20 14:35:46 -08:00
Eric Chiang
849f737095 Merge pull request #283 from coreos/quote-build-docker-push
travis: quote cwd build-docker-push script
2016-01-20 09:09:06 -08:00
Dalton Hubble
4b9afb84d6 travis: Quote cwd build-docker-push script 2016-01-20 00:41:40 -08:00
Eric Chiang
4da143ca2d server: fix reset password test
TestResetPasswordHandler depended on makeToken begin called twice
during the initialization of a single test case and later assuming
the result would match. Because the token has a timestamp accurate
to the second, occasionally the timestamps would be slightly off
within a single test case and cause the test to fail.

Adding a sleep statement to makeToken would cause the test to fail
reliably.

Define a single token for each test case outside of the struct
initializer so test cases compare the same token.

Closes #274

Additionally remove logging statements that dump entire HTML pages.
2016-01-19 19:45:16 -08:00
Eric Chiang
6b4aa88306 Merge pull request #280 from ericchiang/user_api
*: move user API auth to middleware and fix return status
2016-01-19 15:52:11 -08:00
Eric Chiang
0ada4c8010 *: move user API auth to middleware and fix return status
Move client authentication into its own middleware and provide
differentiation between HTTP requests that do not provide
credentials (401) and requests that authenticate as a non-admin
user (403).

Closes #152
2016-01-19 13:49:01 -08:00
Eric Chiang
ace8253c82 Merge pull request #279 from dghubble/master
travis: Change from after_success script to travis deploy
2016-01-19 11:41:42 -08:00
Dalton Hubble
cf0c2afa4c travis: Change from after_success script to travis deploy 2016-01-19 11:22:46 -08:00
bobbyrullo
bfe53e0b03 Merge pull request #275 from ericchiang/decode_err
db: log ignored base64 decode error
2016-01-19 09:35:55 -08:00
bobbyrullo
67c1bd6aee Merge pull request #277 from ericchiang/cmd_stdin
*: allow dexctl set-connector-configs to read from stdin
2016-01-19 09:34:33 -08:00
Eric Chiang
ec3bc7f258 *: allow dexctl set-connector-configs to read from stdin
Closes #276
2016-01-19 08:59:34 -08:00
Eric Chiang
d255007ed9 db: log ignored base64 decode error
Closes #270
2016-01-15 15:31:46 -08:00
Eric Chiang
b5c7f1978e Merge pull request #269 from ericchiang/update_go_version
*: upgrade to go 1.5.3
2016-01-13 15:32:55 -08:00
Eric Chiang
9db1062e46 *: upgrade to go 1.5.3 2016-01-13 15:01:26 -08:00
Eric Chiang
09d8d8423c Merge pull request #263 from ericchiang/admin_tests
admin: add build ignore tag to tests that don't compile
2016-01-11 13:23:13 -08:00
Eric Chiang
69dcfec1be admin: add build ignore tag to tests that don't compile
These tests aren't included in the top level test script so have
unintentionally been ignored and currently don't compile. Until
this is fixed (see #257) add a build tag so tools ignore them.
2016-01-11 11:58:17 -08:00
bobbyrullo
217e26691c Merge pull request #259 from ericchiang/secret_errors
pkg: improve base64 flag error message
2016-01-08 16:39:43 -08:00
Eric Chiang
f9fc876391 Merge pull request #260 from ericchiang/maintainers
*: update MAINTAINERS
2016-01-08 15:00:14 -08:00
Eric Chiang
86f4494c83 *: update MAINTAINERS 2016-01-08 14:54:39 -08:00
Eric Chiang
248337b08c pkg: improve base64 flag error message
Closes #258
2016-01-08 11:38:28 -08:00
Eric Chiang
d5bdb2e731 Merge pull request #252 from ericchiang/uuid_dep
Godeps,user: update uuid package reference
2016-01-07 10:18:26 -08:00
Eric Chiang
1829209243 Godeps,user: update uuid package reference
The package code.google.com/p/go-uuid/uuid has been moved to
github.com/pborman/uuid. Update the reference.

Closes #224
2015-12-30 08:54:31 -08:00
bobbyrullo
7c8e25f292 Merge pull request #251 from bobbyrullo/roadmap
Documentation: dex roadmap
2015-12-29 17:01:29 -08:00
Bobby Rullo
304d6f61e7 Documentation: dex roadmap 2015-12-29 16:04:49 -08:00
Eric Chiang
7aa3d925d5 Merge pull request #249 from ericchiang/cli
use cobra for dexctl cli logic
2015-12-28 16:26:31 -08:00
bobbyrullo
75488c0e78 Merge pull request #250 from bobbyrullo/fix_dex
db, functional: make value column in key not pkey
2015-12-28 16:12:33 -08:00
Bobby Rullo
c1f8effe1a db, functional: make value column in key not pkey
go-oidc increased the size of the generated keys, which were too large
to be used as primary keys in postgres.
2015-12-28 16:02:16 -08:00
Eric Chiang
3bfbf7050e Godeps: add github.com/spf13/cobra to vendored packages 2015-12-28 15:58:05 -08:00
Eric Chiang
22c20e4e32 cmd: add version subcommand to dexctl
closes #220
2015-12-28 15:56:43 -08:00
Eric Chiang
8e5115ce73 cmd: use spf13/cobra for dexctl cli logic 2015-12-28 15:55:11 -08:00
Eric Chiang
e2b4061fe5 Merge pull request #248 from ericchiang/functional_ci
:* run all functional tests through travis CI
2015-12-28 14:40:39 -08:00
Eric Chiang
4fa7e27ab5 :* run all functional tests through travis CI 2015-12-28 14:33:16 -08:00
bobbyrullo
71f5021678 Merge pull request #246 from bobbyrullo/maybe
server: better UX when remote ID already exists
2015-12-23 18:17:54 -08:00
Bobby Rullo
dc828825e6 server: better UX when remote ID already exists
Instead of cryptic message with nowhere to, give them the choice to
login with that account or register.
2015-12-23 17:11:03 -08:00
bobbyrullo
9f0487538d Merge pull request #244 from jhuntoo/master
Update k8s README to --template syntax
2015-12-22 22:16:10 -08:00
bobbyrullo
6c09576668 Merge pull request #242 from ericchiang/duplicate_login
server: fix flow when user logs in through wrong connector
2015-12-22 15:40:19 -08:00
Jonathon Lee
96553c1793 Update k8s README to --template syntax 2015-12-22 23:33:20 +00:00
Eric Chiang
ad6e331860 server: fix flow when user logs in through wrong connector
This cleans up the code that deals with a user attempting to login
through a different connector than they registered with. The only
functional change is that `newLoginURLFromSession` is now called
with register = false when a user has an existing account.
2015-12-22 13:20:40 -08:00
Eric Chiang
1675acf21b Merge pull request #240 from ericchiang/reduce_backoff
cmd: reduce backoff max when worker is waiting for connectors
2015-12-22 10:57:22 -08:00
Eric Chiang
3776c74c15 cmd: reduce backoff max when worker is waiting for connectors
fixes #177
2015-12-22 10:25:27 -08:00
bobbyrullo
0f7fed8d5b Merge pull request #236 from bobbyrullo/push_it_good
.travis.yml: Push to repo after success
2015-12-21 15:44:42 -08:00
bobbyrullo
630e5f2dcb Merge pull request #237 from ericchiang/postgres_image
*: use coreos postgres image for travis ci
2015-12-21 15:41:53 -08:00
Bobby Rullo
a60a4d25bf .travis.yml: Push to repo after success. 2015-12-21 15:40:29 -08:00
Eric Chiang
064b3bae47 *: use coreos postgres image for travis ci
Moved postgres image from personal account to quay.io/coreos.
2015-12-21 15:00:04 -08:00
Eric Chiang
c4767077aa Merge pull request #234 from ericchiang/travis_functional
*: add functional tests to travis config (WIP)
2015-12-21 14:41:01 -08:00