google

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 6 Imported by: 0

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 New

func New() Auth

New returns a new instance of google Auth

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL