google

package
v0.0.0-...-f8f25fb Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIDToken

func GetIDToken(serviceURL string, options ...Option) (string, error)

GetIDToken returns the ID token for given service URL

Types

type Option

type Option interface {
	Apply(*settings)
}

Option is an option for Google ID token.

func WithCredentialsFile

func WithCredentialsFile(filename string) Option

WithCredentialsFile returns a Option with credientials file

func WithCredentialsJSON

func WithCredentialsJSON(p []byte) Option

WithCredentialsJSON returns a Option with credientials JSON

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

WithHTTPClient returns a Option that specifies the HTTP client to use

Jump to

Keyboard shortcuts

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