Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { }
Auth implements Authable for google credentials
func (Auth) Principal ¶
func (g Auth) Principal(credFile string) (model.Contributor, error)
Principal queries google oauth2 with some local credentials to extract user information (aka principal).
By default, credentials are taken from your default application_default_credentials. On linux, this is located at ~/.config/gcloud/application_default_credentials.json.
Click to show internal directories.
Click to hide internal directories.