No description
Find a file
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
admin admin: add build ignore tag to tests that don't compile 2016-01-11 11:58:17 -08:00
client *: move original project to dex 2015-08-18 11:26:57 -07:00
cmd *: allow dexctl set-connector-configs to read from stdin 2016-01-19 08:59:34 -08:00
connector Change status code used for redirects from StatusTemporaryRedirect (307) to StatusFound (302) 2016-01-23 22:33:53 +01:00
contrib Update k8s README to --template syntax 2015-12-22 23:33:20 +00:00
db db: log ignored base64 decode error 2016-01-15 15:31:46 -08:00
Documentation Documentation: dex roadmap 2015-12-29 16:04:49 -08:00
email email: templatizer takes global context. 2015-10-30 14:53:52 -07:00
examples Merge pull request #204 from coreos/update-dev-documentation 2015-12-07 15:43:41 -08:00
functional *: allow dexctl set-connector-configs to read from stdin 2016-01-19 08:59:34 -08:00
Godeps Godeps,user: update uuid package reference 2015-12-30 08:54:31 -08:00
integration user/manager: connector must exists when creating remote identity 2015-12-07 17:34:08 -08:00
pkg pkg: improve base64 flag error message 2016-01-08 11:38:28 -08:00
refresh refreshtoken: return base64 encoded token for in-memory backend. 2015-10-12 14:51:52 -07:00
repo *: move original project to dex 2015-08-18 11:26:57 -07:00
schema server: expose user disable API endpoint 2015-09-29 16:46:30 -07:00
server Change status code used for redirects from StatusTemporaryRedirect (307) to StatusFound (302) 2016-01-23 22:33:53 +01:00
session *: Remove unnecessary else statements 2015-09-04 22:45:32 +03:00
static server: better UX when remote ID already exists 2015-12-23 17:11:03 -08:00
user *: move user API auth to middleware and fix return status 2016-01-19 13:49:01 -08:00
.gitignore *: move original project to dex 2015-08-18 11:26:57 -07:00
.travis.yml travis: Quote cwd build-docker-push script 2016-01-20 00:41:40 -08:00
build cmd: add version subcommand to dexctl 2015-12-28 15:56:43 -08:00
build-docker-push git-version: script detection of git tag/commit 2015-12-16 14:28:20 -08:00
build-units *: move original project to dex 2015-08-18 11:26:57 -07:00
CONTRIBUTING.md *: move original project to dex 2015-08-18 11:26:57 -07:00
cover *: move original project to dex 2015-08-18 11:26:57 -07:00
DCO *: move original project to dex 2015-08-18 11:26:57 -07:00
Dockerfile Dockerfile: use right env var for email templates 2015-10-22 12:07:07 -07:00
Dockerfile-builder Dockerfile: use go 1.4 to build 2015-10-22 14:02:51 -07:00
git-version git-version: script detection of git tag/commit 2015-12-16 14:28:20 -08:00
go-docker Dockerfile: use go 1.4 to build 2015-10-22 14:02:51 -07:00
LICENSE *: move original project to dex 2015-08-18 11:26:57 -07:00
MAINTAINERS *: update MAINTAINERS 2016-01-08 14:54:39 -08:00
NOTICE *: move original project to dex 2015-08-18 11:26:57 -07:00
README.md *: add .travis.yml and status badge to README 2015-12-21 14:58:34 +01:00
release release: script the building of release artifacts 2015-12-16 14:28:34 -08:00
test user/manager: connector must exists when creating remote identity 2015-12-07 17:34:08 -08:00
test-functional go-docker: support functional tests 2015-08-20 16:50:30 -07:00

dex

Build Status Docker Repository on Quay.io GoDoc

dex is a federated identity management service. It provides OpenID Connect (OIDC) and OAuth 2.0 to users, and can proxy to multiple remote identity providers (IdP) to drive actual authentication, as well as managing local username/password credentials.

We named the project 'dex' because it is a central index of users that other pieces of software can authenticate against.

Architecture

dex consists of multiple components:

  • dex-worker is the primary server component of dex
    • host a user-facing API that drives the OIDC protocol
    • proxy to remote identity providers via "connectors"
    • provides an API for administrators to manage users.
  • dex-overlord is an auxiliary process responsible for various administrative tasks:
    • rotation of keys used by the workers to sign identity tokens
    • garbage collection of stale data in the database
    • provides an API for bootstrapping the system.
  • dexctl is a CLI tool used to manage a dex deployment
    • configure identity provider connectors
    • administer OIDC client identities
  • database; a database is used to for persistent storage for keys, users, OAuth sessions and other data. Currently Postgres is the only supported database.

A typical dex deployment consists of N dex-workers behind a load balanacer, and one dex-overlord. The dex-workers directly handle user requests, so the loss of all workers can result in service downtime. The single dex-overlord runs its tasks periodically, so it does not need to maintain 100% uptime.

Who Should Use Dex?

A non-exhaustive list of those who would benefit from using dex:

  • Those who want a language/framework-agnostic way to manage authentication.
  • Those who want to federate authentication from mutiple providers of differing types.
  • Those who want to manage user credentials (eg. username and password) and perform authentication locally
  • Those who want to create an OIDC Identity Provider for multiple clients to authenticate against.
  • Those who want any or all of the above in a Free and Open Source project.

Connectors

Remote IdPs could implement any auth-N protocol. Connectors contain protocol-specific logic and are used to communicate with remote IdPs. Possible examples of connectors could be: OIDC, LDAP, Local credentials, Basic Auth, etc.

dex ships with an OIDC connector, useful for authenticating with services like Google and Salesforce (or even other dex instances!) and a "local" connector, in which dex itself presents a UI for users to authenticate via dex-stored credentials.

Future connectors can be developed and added as future interoperability requirements emerge.

Relevant Specifications

These specs are referenced and implemented to some degree in the jose package of this project.

OpenID Connect (OIDC) is broken up into several specifications. The following (amongst others) are relevant:

Example OIDC Discovery Endpoints

Next steps:

If you want to try out dex quickly with a single process and no database (do not run this way in production!) take a look at the dev guide.

For running the full stack check out the getting started guide.

Coming Soon

  • Multiple backing Identity Providers
  • Identity Management
  • Authorization

Similar Software

Auth0

Auth0 is a commercial product which implements the OpenID Connect protocol and JWT. It comes with built-in support for 30+ social providers (and provide extenibility points to add customs); enterprise providers like ADFS, SiteMinder, Ping, Tivoli, or any SAML provider; LDAP/AD connectors that can be run behind firewalls via an open source agent/connector; built-in user/password stores with email and phone verification; legacy user/password stores running Mongo, PG, MySQL, SQL Server among others; multi-factor auth; passwordless support; custom extensibility of the auth pipeline through node.js and many other things.

You could chain dex with Auth0, dex as RP and Auth0 as OpenId Connect Provider, and bring to dex all the providers that comes in Auth0 plus the user management capabilities.

CloudFoundry UAA

The UAA is a multi tenant identity management service, used in Cloud Foundry, but also available as a stand alone OAuth2 server.

OmniAuth

OmniAuth provides authentication federation at the language (Ruby) level, with a wide range of integrations available.

Okta

Okta is a commercial product which is similar to dex in that for it too, identity federation is a key feature. It connects to many more authentication providers than dex, and also does the federation in the oppposite direction - it can be used as a SSO to other identity providers.

Shibboleth

Shibboleth is an open source system implementing the SAML standard, and can federate from a variety of backends, most notably LDAP.