auth

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(cfg config.Config) *oauth2.Config

NewConfig creates a new oauth2-backed configuration for handling Nest API Authentication. This is intended to be used with an oauth2.Client object.

func NewConfigWithToken

func NewConfigWithToken(token string) oauth2.TokenSource

NewConfigWithToken creates a new oauth2 Token Source based on a static generated token. This is helpful when a token does not have an expiration or fetching an authorization code is not desirable or required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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