forked from Mirrors/oauth2
First steps.
Change-Id: I85f24bcca91afa4060bc0f0b0799ba8abbb8abdb
This commit is contained in:
parent
01de73cf58
commit
d2fc13d268
|
@ -69,6 +69,8 @@ type CredentialSource struct {
|
||||||
func (c *Config) parse() baseCredentialSource {
|
func (c *Config) parse() baseCredentialSource {
|
||||||
if c.CredentialSource.File != "" {
|
if c.CredentialSource.File != "" {
|
||||||
return fileCredentialSource{File: c.CredentialSource.File, Format: c.CredentialSource.Format}
|
return fileCredentialSource{File: c.CredentialSource.File, Format: c.CredentialSource.Format}
|
||||||
|
} else if c.CredentialSource.URL != "" {
|
||||||
|
return urlCredentialSource{URL: c.CredentialSource.URL, Format: c.CredentialSource.Format}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue