Skip to content

Commit

Permalink
fix: dex configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Sep 28, 2022
1 parent 66b5012 commit 7c116fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
30 changes: 1 addition & 29 deletions dex-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
issuer: http://localhost:5556/dex
issuer: http://localhost:5556

storage:
type: memory
Expand Down Expand Up @@ -49,31 +49,3 @@ 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://localhost: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://localhost:5556/dex/callback
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
OTEL_TRACES_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
DELEGATED_CLIENT_ID: gateway
DELEGATED_CLIENT_SECRET: ZXhhbXBsZS1hcHAtc2VjcmV0
DELEGATED_ISSUER: http://localhost:5556/dex
DELEGATED_ISSUER: http://localhost:5556
BASE_URL: http://localhost:8080
depends_on:
- postgres
Expand Down

0 comments on commit 7c116fe

Please sign in to comment.