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
Eric Chiang
8852e53cbe
readme: added godoc link to readme
...
closes #114
2015-12-02 08:39:01 -08:00
bobbyrullo
59a821ed28
Merge pull request #188 from ericchiang/trim_emails
...
registration: trim spaces and sanity check user email from form
2015-12-01 15:07:47 -05:00
bobbyrullo
a1b7f9e709
Merge pull request #190 from ericchiang/valid_email
...
user: fix bug in ValidEmail helper
2015-12-01 15:06:42 -05:00
Eric Chiang
8be9396811
registration: trim spaces and sanity check user email from form
...
When a user attempts to register an email, trim prefixed and
trailing spaces, then perform a basic sanity check to ensure it's
of form "test@example.com".
Fixes #163
2015-12-01 10:20:00 -08:00
Brandon Philips
b30cb7d206
README: add OAuth 2.0 keyword for Google
...
We aren't coming up if you google OAuth 2 on Google. Fix this.
2015-12-01 13:04:15 -05:00
Eric Chiang
137330b202
user: fix bug in ValidEmail helper
...
mail.ParseAddress will stop parsing a string once it finds a valid
email address. This means you could give ValidUser an email
address followed by junk and it would mark it valid.
This commit fixes this behavior and adds some more test cases.
Fixes #189
2015-12-01 09:06:30 -08:00
Joe Bowers
a9ab63893d
Merge pull request #179 from coreos/new-invitation-endpoint
...
New invitation endpoint
2015-11-18 14:25:09 -08:00
Joe Bowers
0c854a21d6
server: endpoint and system for sending invitations to dex
...
An invitation allows users to both verify their email address and set
a new password.
2015-11-18 14:24:19 -08:00
bobbyrullo
76befe03bc
Merge pull request #183 from stongo/issue-135
...
server: add scope to newLoginURLFromSession
2015-11-18 12:14:35 -08:00
Marcus Stong
7d0ecf9532
server: add scope to newLoginURLFromSession
...
need to make sure the scope is present otherwise will be considered an invalid request
fixes #135
2015-11-18 14:16:35 -05:00
Brandon Philips
728b64c3cf
Merge pull request #182 from bfallik/patch-1
...
Update README.md
2015-11-13 09:12:42 -08:00
Brian Fallik
63f3f5c553
Update README.md
...
fix whitespace issue
2015-11-13 00:37:45 -05:00
Joe Bowers
2cdb6c0adb
user: more convenient way to read claims that have already been validated
2015-11-11 10:04:54 -08:00
Joe Bowers
792b72ef54
server: spelling of error message
2015-11-11 10:04:54 -08:00
Joe Bowers
468c1b8b5e
user: claims and parsing for invitations
2015-11-11 10:04:54 -08:00