Commit graph

302 commits

Author SHA1 Message Date
Eric Chiang
9db1062e46 *: upgrade to go 1.5.3 2016-01-13 15:01:26 -08:00
Eric Chiang
9796a1e648 *: add migration to update JSON fields and require postgres 9.4+
The "redirectURLs" field in the client metadata has been updated
to the correct "redirect_uris". To allow backwards compatibility
use Postgres' JSON features to update the actual JSON in the text
field.

json_build_object was introduced in Postgres 9.4. So update the
documentations to require at least this version.
2016-01-12 17:19:07 -08:00
Eric Chiang
5e44b6bc27 *: update all to accommodate changes to go-oidc
Update dex to comply with the changes to fieldnames and types of
the client and provider metadata structs in coreos/go-oidc.
2016-01-12 17:16:28 -08:00
Eric Chiang
e80701f4b9 Godeps: update go-oidc for updates to client and provider metadata 2016-01-12 17:15:55 -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
Eric Chiang
5dd08a8dd4 *: add functional tests to travis config 2015-12-21 14:37:50 -08:00
Eric Chiang
5192cac342 Merge pull request #235 from bobbyrullo/new_go_oidc
Godeps: update github.com/coreos/go-oidc
2015-12-21 12:01:10 -08:00
Bobby Rullo
9243107dab Godeps: update github.com/coreos/go-oidc 2015-12-21 11:41:00 -08:00
bobbyrullo
376b1bcb67 Merge pull request #209 from ericchiang/conn_docs
connector: document Connector and ConnectorConfig interfaces
2015-12-21 10:00:22 -08:00
bobbyrullo
b40de37e4e Merge pull request #233 from ericchiang/generate
don't call go-bindata on every build
2015-12-21 09:49:31 -08:00
Eric Chiang
a7138b3cfd db: rebuild miration assets using go generate 2015-12-21 09:45:53 -08:00
Eric Chiang
6cb3146b09 build,db: don't call go-bindata on every build
Add go generate rule to generate migration assets.
2015-12-21 09:43:45 -08:00
Eric Chiang
be6944555e Merge pull request #231 from jonboulle/master
*: add .travis.yml and status badge to README
2015-12-21 08:45:32 -08:00
Jonathan Boulle
da4b5d972b *: add .travis.yml and status badge to README 2015-12-21 14:58:34 +01:00
Eric Chiang
a5feafc80d connector: document Connector and ConnectorConfig interfaces
closes #203
2015-12-17 16:33:54 -08:00
bobbyrullo
2853ac71f3 Merge pull request #215 from ericchiang/fix_panic
cmd, db: verify at least one secret is passed to --key-secrets
2015-12-17 09:24:47 -08:00
bobbyrullo
dddc4c1206 Merge pull request #223 from ericchiang/fix_tests
server: fix tests
2015-12-17 09:24:01 -08:00
Eric Chiang
49389c9b90 cmd, db: verify at least one secret is passed to --key-secrets
Passing an empty list to the overlord or worker's --key-secrets
flag currently causes an out of range panic. Always check to ensure
there's at least one element passed.

Fixes #130
Fixes #217
2015-12-16 20:28:21 -08:00
Eric Chiang
99e1163972 server: fix tests
In #210 a field name in the provider config was corrected. However
the old, and incorrect, value was hard coded in the tests. This
change updates the test case to hold the correct field name.

There are no other references to the old name in dex or its
vendored packages.
2015-12-16 18:20:14 -08:00
Eric Chiang
acfcca852e Merge pull request #216 from ericchiang/page_titles
static: use --issuer-name as title for public facing pages
2015-12-16 15:18:05 -08:00