Skip to content

Commit

Permalink
Merge pull request #686 from cjyar/master
Browse files Browse the repository at this point in the history
Require the connector to have an ID.
  • Loading branch information
ericchiang authored Nov 15, 2016
2 parents e1f6679 + a2b78c2 commit 2ec3349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/dex/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ func serve(cmd *cobra.Command, args []string) error {

connectors := make([]server.Connector, len(c.Connectors))
for i, conn := range c.Connectors {
if conn.ID == "" {
return fmt.Errorf("no ID field for connector %d", i)
}
if conn.Config == nil {
return fmt.Errorf("no config field for connector %q", conn.ID)
}
Expand Down

0 comments on commit 2ec3349

Please sign in to comment.