Skip to content

Commit

Permalink
feat: Add multi-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Sep 22, 2022
1 parent f8e8c47 commit 333c327
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
28 changes: 28 additions & 0 deletions dex-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,31 @@ staticPasswords:
hash: '$2y$10$VDnbwmixVIV9ZG3Z8BkomOgakiJ6WyYDQY.x3Tpxu2.qHrWCFaU6q' # user2
username: 'user2'
userID: '00000000-0000-0000-0000-000000000022'

connectors:
- type: github
# Required field for connector id.
id: github
# Required field for connector name.
name: GitHub
config:
# Credentials can be string literals or pulled from the environment.
clientID: $GITHUB_CLIENT_ID
clientSecret: $GITHUB_CLIENT_SECRET
redirectURI: http://127.0.0.1:5556/dex/callback
- type: oidc
id: Formance
name: Formance
config:
# Canonical URL of the provider, also used for configuration discovery.
# This value MUST match the value returned in the provider config discovery.
#
# See: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig
issuer: https://accounts.google.com

# Connector config values starting with a "$" will read from the environment.
clientID: $GOOGLE_CLIENT_ID
clientSecret: $GOOGLE_CLIENT_SECRET

# Dex's issuer URL + "/callback"
redirectURI: http://127.0.0.1:5556/callback
1 change: 0 additions & 1 deletion pkg/web/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{ template "header.html" . }}

<div class="theme-panel">
Maxence
<h2 class="theme-heading">Log in to {{ issuer }} </h2>
<div>
{{ range $c := .Connectors }}
Expand Down

0 comments on commit 333c327

Please sign in to comment.