No description
Find a file
bobbyrullo 05adce3e93 Merge pull request #141 from triddell/master
build: add equals sign to avoid link warning when building project
2015-09-29 14:50:49 -07:00
admin *: move original project to dex 2015-08-18 11:26:57 -07:00
client *: move original project to dex 2015-08-18 11:26:57 -07:00
cmd fixup 2015-09-18 17:25:06 -07:00
connector *: move original project to dex 2015-08-18 11:26:57 -07:00
contrib contrib/k8s: docs for using k8s configs 2015-09-18 15:30:17 -07:00
db server,db: flag for disabling user login 2015-09-25 14:25:06 -07:00
Documentation Merge pull request #126 from cpswan/fixes-125 2015-09-28 22:15:48 -07:00
email email/smtp: Fix type comparison error 2015-09-25 12:49:57 -07:00
examples Merge pull request #92 from yifan-gu/ssl 2015-08-31 10:41:13 -07:00
functional refresh: bcrypt raw bytes rather than base64 encoded string. 2015-09-02 14:23:20 -07:00
Godeps build: vendor quotedprintable to build on Go < 1.5 2015-09-28 13:01:25 -07:00
integration server: all authorizations fail for disabled users 2015-09-25 17:29:59 -07:00
pkg *: Remove unnecessary else statements 2015-09-04 22:45:32 +03:00
refresh *: Remove unnecessary else statements 2015-09-04 22:45:32 +03:00
repo *: move original project to dex 2015-08-18 11:26:57 -07:00
schema *: move original project to dex 2015-08-18 11:26:57 -07:00
server Merge pull request #138 from joeatwork/disable-users 2015-09-28 12:36:09 -07:00
session *: Remove unnecessary else statements 2015-09-04 22:45:32 +03:00
static email: Remove unused ID field 2015-09-24 15:01:06 -07:00
user Merge pull request #138 from joeatwork/disable-users 2015-09-28 12:36:09 -07:00
.gitignore *: move original project to dex 2015-08-18 11:26:57 -07:00
build build: add equals sign to avoid link warning when building project 2015-09-29 12:45:28 -07:00
build-docker-push build-docker-push: allow override of quay repo 2015-08-26 15:28:09 -07: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 *: move original project to dex 2015-08-18 11:26:57 -07:00
go-docker go-docker: support functional tests 2015-08-20 16:50:30 -07:00
LICENSE *: move original project to dex 2015-08-18 11:26:57 -07:00
MAINTAINERS *: move original project to dex 2015-08-18 11:26:57 -07:00
NOTICE *: move original project to dex 2015-08-18 11:26:57 -07:00
README.md Merge pull request #96 from bobbyrullo/who_should_ 2015-09-03 11:48:01 -07:00
test *: move original project to dex 2015-08-18 11:26:57 -07:00
test-functional go-docker: support functional tests 2015-08-20 16:50:30 -07:00

dex

Docker Repository on Quay.io

dex is a federated identity management service. It provides OpenID Connect (OIDC) 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 benfit 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

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.