Commit graph

220 commits

Author SHA1 Message Date
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
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
bobbyrullo
c95a769ad6 Merge pull request #213 from ericchiang/naming_fix
Godeps: update github.com/coreos/go-oidc/oidc to fix field name
2015-12-16 15:09:13 -08:00
Brian Waldon
35dfd8adb0 Merge pull request #214 from bcwaldon/doc-fix
docs: fix invocation of test-functional
2015-12-16 14:31:40 -08:00
bobbyrullo
b5164994e1 Merge pull request #221 from coreos/release-scripts
Release scripts
2015-12-16 14:30:27 -08:00
Brian Waldon
80a71d84c2 release: script the building of release artifacts 2015-12-16 14:28:34 -08:00
Brian Waldon
c3dd998441 git-version: script detection of git tag/commit 2015-12-16 14:28:20 -08:00
Eric Chiang
4c9d2d670a static: use --issuer-name as title for public facing pages
Closes #142
2015-12-16 10:56:13 -08:00
Brian Waldon
cb6a418226 docs: fix invocation of docker in dev guide 2015-12-16 10:37:03 -08:00
Eric Chiang
271822bff1 Godeps: update github.com/coreos/go-oidc/oidc to fix field name
Correct provider config field "id_token_alg_values_supported" to
"id_token_signing_alg_values_supported".

Fixes #212
2015-12-15 10:31:05 -08:00
Eric Chiang
bf13c3bc37 Merge pull request #210 from ericchiang/update_go_oidc
Godeps: update coreos/go-oidc to include OIDC race condition fixes
2015-12-15 09:46:26 -08:00
Eric Chiang
faee39fbf8 Godeps: update coreos/go-oidc to include OIDC race condition fixes
Update github.com/coreos/go-oidc/... to include coreos/go-oidc#17
which fixes a race condition in the OIDC connector.
2015-12-10 10:00:46 -08:00
Eric Chiang
f63ec158a5 Merge pull request #197 from ericchiang/oauth2_connector
connector: github and bitbucket oauth2 connectors added
2015-12-10 08:56:09 -08:00
Eric Chiang
2d611ad508 Merge pull request #208 from ericchiang/parse_int
db: strconv.ParseInt specify base 10
2015-12-09 19:12:36 -08:00
Eric Chiang
9f3bf0d160 db: strconv.ParseInt specify base 10
closes #99
2015-12-09 14:47:21 -08:00
Eric Chiang
3415a79e22 Documentation: add docs for github and bitbucket connectors 2015-12-08 10:21:52 -08:00
Eric Chiang
f2c3dbc5e6 static, server: add styles for github and bitbucket connectors
Add icons and styles for github and bitbucket buttons.
2015-12-08 10:20:13 -08:00
Eric Chiang
3a23f6bc33 connector: add bitbucket connector
Add bitbucket implementation of oauth2 connector.
2015-12-08 10:19:29 -08:00
Eric Chiang
0d0790e05c connector: add github connector
Add interface for oauth2 connectors and a github implementation.
2015-12-08 10:17:18 -08:00
Eric Chiang
17cac69e80 Godeps: updated github.com/coreos/go-oidc/...
Update Godeps to include:

* coreso/go-oidc#24: reqiured for GitHub connector
* coreso/go-oidc#26: better error messages when connectors are misconfigured
2015-12-08 10:13:33 -08:00
Eric Chiang
cec3cd4451 Merge pull request #206 from ericchiang/connector_config_db_fix
db: fixed missing return statement GetConnectorByID
2015-12-07 21:03:34 -08:00
Eric Chiang
5295344f9e db: fixed missing return statement GetConnectorByID
Added missing err return introduced by #199
2015-12-07 20:58:36 -08:00
bobbyrullo
521aeae3db Merge pull request #199 from ericchiang/validate_connector
api: validate local connector existence before creating user
2015-12-07 17:44:22 -08:00
Eric Chiang
f43655a8c3 user/manager: connector must exists when creating remote identity
Add ConnectorConfigRepo to UserManager. When trying to create a
RemoteIdentity, validate that the connector ID exists.

Fixes #198
2015-12-07 17:34:08 -08:00
bobbyrullo
6d460fa224 Merge pull request #204 from coreos/update-dev-documentation
Tweak dev guide & update example README
2015-12-07 15:43:41 -08:00
bobbyrullo
8cec2d6ba9 Merge pull request #205 from coreos/example-email
*: use example.com in place of coreos.com
2015-12-07 15:42:06 -08:00
Eric Chiang
d518447282 user: move user manager to it's own package
This commit moves the user.Manage to its own package (user/manager)
so it can import the connector package in a later commit.

For clarity, it renames "Manager" to "UserManager" using gorname.

This commit has no functional changes.
2015-12-07 15:34:14 -08:00
Brian Waldon
27a217fbf6 Merge pull request #192 from ericchiang/godoc
readme: added godoc link to readme
2015-12-07 14:57:37 -08:00
Brian Waldon
b14ce73fa0 *: use example.com in place of coreos.com
Align with RFC2606 for example email addresses, using example.com
in place of coreos.com where appropriate.
2015-12-07 14:55:29 -08:00
Mike Kobit
31b8e95878 Documentation: update dev-guide.md and examples/README.md
- Be more explicit with exact instructions to startup
- Change some of the commands that were using local directory with "./" when
    the executable was in a lower directory. These
    commands (like "./bin/dex-worker") did not work on ZSH or Bash, so I
    removed the leading "./"
- Add some syntax highlighting markdown to code sections
2015-12-07 14:48:48 -08:00
Eric Chiang
74f8473407 Merge pull request #195 from ericchiang/db_doc
documentation: clarify db permissions in getting started doc
2015-12-02 13:21:12 -08:00
Eric Chiang
cc36362f1b documentation: clarify db permissions in getting started doc
In the 'getting started' doc create a user and database for dex to
clarify that the user needs permissions to create databases, but
dex does not.

closes #127
2015-12-02 13:20:20 -08:00
Eric Chiang
1c0e59a5b4 Merge pull request #193 from ericchiang/base64
*: trim newlines from base64 command for Linux compatibility
2015-12-02 09:33:08 -08:00
Eric Chiang
1c0a0cd45d *: trim newlines from base64 command for Linux compatibility
base64 wraps lines on Linux after 76 characters. Use tr to trim
the newlines in a portable way.
2015-12-02 09:29:24 -08:00