Allow arbitrary data to be passed to templates

This commit is contained in:
Marc-André Dufresne
2019-08-06 13:14:53 -04:00
parent 6ae11a1cfe
commit d458e882aa
4 changed files with 43 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"github.com/dexidp/dex/server"
"testing"
"github.com/ghodss/yaml"
@@ -69,6 +70,12 @@ storage:
connectionTimeout: 3
web:
http: 127.0.0.1:5556
frontend:
dir: ./web
extra:
foo: bar
staticClients:
- id: example-app
redirectURIs:
@@ -130,6 +137,12 @@ logger:
Web: Web{
HTTP: "127.0.0.1:5556",
},
Frontend: server.WebConfig{
Dir: "./web",
Extra: map[string]string{
"foo": "bar",
},
},
StaticClients: []storage.Client{
{
ID: "example-app",