auth

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(state string, codeVerifier string, redirectURL string, oauth2config oauth2.Config, targetLabel string, finish chan bool) http.HandlerFunc

Callback is function that verifies code and get tokens (and store then on config file)

func PKCEgenerator

func PKCEgenerator() (string, string, error)

PKCEgenerator returns a valid codeVerifier and codeChallenge

func RecoverToken

func RecoverToken(currentTarget *types.Target) (*oauth2.Token, error)

RecoverToken uses keyring to recover access token

func StorageTokens

func StorageTokens(targetLabel string, token oauth2.Token) error

StorageTokens uses keyring to storage refresh and access tokens

Types

This section is empty.

Jump to

Keyboard shortcuts

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