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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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