forked from remote/oauth2
First steps.
Change-Id: I85f24bcca91afa4060bc0f0b0799ba8abbb8abdb
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user