Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
31e80094
Commit
31e80094
authored
Jan 23, 2017
by
rithu john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/dex: make connector name field mandatory in dex configuration.
parent
613d160a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
github-connector.md
Documentation/github-connector.md
+2
-0
ldap-connector.md
Documentation/ldap-connector.md
+3
-0
saml-connector.md
Documentation/saml-connector.md
+3
-0
serve.go
cmd/dex/serve.go
+3
-0
No files found.
Documentation/github-connector.md
View file @
31e80094
...
...
@@ -15,7 +15,9 @@ The following is an example of a configuration for `examples/config-dev.yaml`:
```
yaml
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.
...
...
Documentation/ldap-connector.md
View file @
31e80094
...
...
@@ -24,7 +24,9 @@ The following is an example config file that can be used by the LDAP connector t
```
yaml
connectors
:
-
type
:
ldap
# Required field for connector id.
id
:
ldap
# Required field for connector name.
name
:
LDAP
config
:
# Host and optional port of the LDAP server in the form "host:port".
...
...
@@ -189,6 +191,7 @@ The following configuration will allow the LDAP connector to search a FreeIPA di
connectors
:
-
type
:
ldap
id
:
ldap
name
:
LDAP
config
:
# host and port of the LDAP server in form "host:port".
host
:
freeipa.example.com:636
...
...
Documentation/saml-connector.md
View file @
31e80094
...
...
@@ -19,7 +19,10 @@ The connector doesn't support refresh tokens since the SAML 2.0 protocol doesn't
```
yaml
connectors
:
-
type
:
samlExperimental
# will be changed to "saml" later without support for the "samlExperimental" value
# Required field for connector id.
id
:
saml
# Required field for connector name.
name
:
SAML
config
:
# Issuer used for validating the SAML response.
issuer
:
https://saml.example.com
...
...
cmd/dex/serve.go
View file @
31e80094
...
...
@@ -136,6 +136,9 @@ func serve(cmd *cobra.Command, args []string) error {
if
conn
.
Config
==
nil
{
return
fmt
.
Errorf
(
"invalid config: no config field for connector %q"
,
conn
.
ID
)
}
if
conn
.
Name
==
""
{
return
fmt
.
Errorf
(
"invalid config: no Name field for connector %q"
,
conn
.
ID
)
}
logger
.
Infof
(
"config connector: %s"
,
conn
.
ID
)
connectorLogger
:=
logger
.
WithField
(
"connector"
,
conn
.
Name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment