Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dex

> 云原生
Open source

OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors

11.0K stars0 likes9 views
WebsiteGitHub

About

OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors

dex - A federated OpenID Connect provider

Dex is an identity service that uses OpenID Connect to drive authentication for other apps.

Dex acts as a portal to other identity providers through "connectors." This lets dex defer authentication to LDAP servers, SAML providers, or established identity providers like GitHub, Google, and Active Directory. Clients write their authentication logic once to talk to dex, then dex handles the protocols for a given backend.

ID Tokens

ID Tokens are an OAuth2 extension introduced by OpenID Connect and dex's primary feature. ID Tokens are JSON Web Tokens (JWTs) signed by dex and returned as part of the OAuth2 response that attests to the end user's identity. An example JWT might look like:

…

ID Tokens contains standard claims assert which client app logged the user in, when the token expires, and the identity of the user.

json
{
  "iss": "http://127.0.0.1:5556/dex",
  "sub": "CgcyMzQyNzQ5EgZnaXRodWI",
  "aud": "example-app",
  "exp": 1492882042,
  "iat": 1492795642,
  "at_hash": "bi96gOXZShvlWYtal9Eqiw",
  "email": "[email protected]",
  "email_verified": true,
  "groups": [
    "admins",
    "developers"
  ],
  "name": "Jane Doe"
}

Because these tokens are signed by dex and contain standard-based claims other services can consume them as service-to-service credentials. Systems that can already consume OpenID Connect ID Tokens issued by dex include:

  • Kubernetes
  • AWS STS

For details on how to request or validate an ID Token, see "Writing apps that use dex".

Kubernetes and Dex

Dex runs natively on top of any Kubernetes cluster using Custom Resource Definitions and can drive API server authentication through the OpenID Connect plugin. Clients, such as kubelogin and kubectl, can act on behalf of users who can login to the cluster through any identity provider dex supports.

  • More docs for running dex as a Kubernetes authenticator can be found here.
  • You can find more about companies and projects which use dex, here.

Connectors

When a user logs in through dex, the user's identity is usually stored in another user-management system: a LDAP directory, a GitHub org, etc. Dex acts as a shim between a client app and the upstream identity provider. The client only needs to understand OpenID Connect to query dex, while dex implements an array of protocols for querying other user-management systems.

A "connector" is a strategy used by dex for authenticating a user against another identity provider. Dex implements connectors that target specific platforms such as GitHub, LinkedIn, and Microsoft as well as established protocols like LDAP and SAML.

Depending on the connectors limitations in protocols can prevent dex from issuing refresh tokens or returning group membership claims. For example, because SAML doesn't provide a non-interactive way to refresh assertions, if a user logs in through the SAML connector dex won't issue a refresh token to its client. Refresh token support is required for clients that require offline access, such as kubectl.

Dex implements the following connectors:

Name supports refresh tokens supports groups claim supports preferred_username claim status notes
LDAP yes yes yes stable
GitHub yes yes yes stable
SAML 2.0 no yes no stable WARNING: Unmaintained and likely vulnerable to auth bypasses (#1884)
GitLab yes yes yes beta
OpenID Connect yes yes yes beta Includes Salesforce, Azure, etc.
OAuth 2.0 no yes yes alpha
Google yes yes yes alpha
LinkedIn yes no no beta
Microsoft yes yes no beta
AuthProxy no yes no alpha Authentication proxies such as Apache2 mod_auth, etc.
Bitbucket Cloud yes yes no alpha
OpenShift yes yes no alpha
Atlassian Crowd yes yes yes * beta preferred_username claim must be configured through config
Gitea yes no yes beta
OpenStack Keystone yes yes no alpha

Stable, beta, and alpha are defined as:

  • Stable: well tested, in active use, and will not change in backward incompatible ways.
  • Beta: tested and unlikely to change in backward incompatible ways.
  • Alpha: may be untested by core maintainers and is subject to change in backward incompatible ways.

All changes or deprecations of connector features will be announced in the release notes.

Documentation

See the official documentation for getting started, configuration, and usage guides.

Reporting a vulnerability

Please see our security policy for details about reporting vulnerabilities.

Getting help

  • For feature requests and bugs, file an issue.
  • For general discussion about both using and developing Dex:
    • join the #dexidp on the CNCF Slack
    • open a new discussion

Contributing

Please see CONTRIBUTING.md for development setup, guidelines, and how to submit pull requests.

License

The project is licensed under the Apache License, Version 2.0.

Issues· 532 open

View all issuesOpen on GitHub
  • #4948

    Request for new release to patch vulnerabilities

    Updated Sep 27, 2026
  • #5039

    Refresh grant returns `invalid_request` instead of `invalid_grant` for invalid, reused or expired refresh tokens

    Updated Sep 24, 2026
  • #5017

    oauth2: refresh token grant deadlocks /token endpoint with SQLite storage (/healthz unaffected)

    Updated Sep 18, 2026
  • #4836

    Allow RFC 8252 loopback port flexibility for registered redirect URIs

    Updated Sep 16, 2026
  • #4956

    Process Request: Introduce process for applying for Dex maintainership

    Updated Sep 2, 2026
  • #4890

    Request: Release containing allowed_connectors client configuration field

    Updated Sep 1, 2026
  • #4972

    gRPC API set groups on passwords

    Updated Aug 28, 2026
  • #320

    examples: add examples with other client frameworks

    help wantedkind/documentationarea/usabilitypriority/P2Updated Aug 27, 2026
  • #4979

    Kubernetes storage GC does not paginate beyond the first 500 objects

    Updated Aug 21, 2026
  • #4209

    Token refresh hangs when using local passwords on SQLite

    Updated Aug 13, 2026

> Tags

Gohacktoberfestidentity-provideridpkubernetes

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,