Skip to content

Commit

Permalink
config: do not store database config in hydra config
Browse files Browse the repository at this point in the history
closes #164
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jul 24, 2016
1 parent 4954ba0 commit 586b97d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ type Config struct {

SystemSecret []byte `mapstructure:"system_secret" yaml:"-"`

DatabaseURL string `mapstructure:"database_url" yaml:"database_url,omitempty"`
DatabaseURL string `mapstructure:"database_url" yaml:"-"`

ConsentURL string `mapstructure:"consent_url" yaml:"consent_url,omitempty"`
ConsentURL string `mapstructure:"consent_url" yaml:"-"`

ClusterURL string `mapstructure:"cluster_url" yaml:"cluster_url,omitempty"`
ClusterURL string `mapstructure:"cluster_url" yaml:"-"`

ClientID string `mapstructure:"client_id" yaml:"client_id,omitempty"`

Expand All @@ -52,16 +52,16 @@ type Config struct {

Dry *bool `mapstructure:"-" yaml:"-"`

AccessTokenLifespan time.Duration
AuthCodeLifespan time.Duration
AccessTokenLifespan time.Duration `yaml:"-"`
AuthCodeLifespan time.Duration `yaml:"-"`

cluster *url.URL
cluster *url.URL `yaml:"-"`

oauth2Client *http.Client
oauth2Client *http.Client `yaml:"-"`

context *Context
context *Context `yaml:"-"`

sync.Mutex
sync.Mutex `yaml:"-"`
}

func (c *Config) GetAccessTokenLifespan() time.Duration {
Expand Down

0 comments on commit 586b97d

Please sign in to comment.